You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open an Admin Report that has some Totals, but not all columns. Like report_customer/totals
Expected result (*)
[Screenshots, logs or description]
No warnings in system.log
Actual result (*)
[Screenshots, logs or description]
Deprecated functionality: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in app/code/core/Mage/Adminhtml/Block/Report/Grid.php
Explaination
This Grid Column in this Grid: Mage_Adminhtml_Block_Report_Customer_Totals_Grid
Preconditions (*)
Steps to reproduce (*)
report_customer/totals
Expected result (*)
system.log
Actual result (*)
Deprecated functionality: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in app/code/core/Mage/Adminhtml/Block/Report/Grid.php
Explaination
This Grid Column in this Grid:
Mage_Adminhtml_Block_Report_Customer_Totals_Grid
magento-lts/app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals/Grid.php
Lines 45 to 49 in 6ceda6a
Causes Problems in this function:
Mage_Adminhtml_Block_Report_Grid::addGrandTotals
magento-lts/app/code/core/Mage/Adminhtml/Block/Report/Grid.php
Lines 414 to 424 in 6ceda6a
An easy fix probably would be to check
hasTotal()
first? Ala:$_column->hasTotal() && str_contains($_column->getTotal(), '/')
The text was updated successfully, but these errors were encountered: