We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946f15a commit 1c8a5b8Copy full SHA for 1c8a5b8
app/code/core/Mage/Adminhtml/Block/Report/Grid.php
@@ -409,10 +409,10 @@ public function addGrandTotals($total)
409
}
410
411
/*
412
- * recalc totals if we have average
+ * recalculate totals if we have average
413
*/
414
foreach ($this->getColumns() as $key => $_column) {
415
- if (str_contains($_column->getTotal(), '/')) {
+ if ($_column->hasTotal() && str_contains($_column->getTotal(), '/')) {
416
list($t1, $t2) = explode('/', $_column->getTotal());
417
if ($this->getGrandTotals()->getData($t2) != 0) {
418
$this->getGrandTotals()->setData(
0 commit comments