Skip to content

Commit

Permalink
Merge branch 'main' into textshadowproblem
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano authored Jul 8, 2024
2 parents 5da828a + 0b27c5f commit 22836e8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function _beforeToHtml()
]);
}

if (Mage::getSingleton('admin/session')->isAllowed('catalog/reviews_ratings')) {
if (Mage::helper('core')->isModuleOutputEnabled('Mage_Review') && Mage::getSingleton('admin/session')->isAllowed('catalog/reviews_ratings')) {
$this->addTab('reviews', [
'label' => Mage::helper('customer')->__('Product Reviews'),
'class' => 'ajax',
Expand Down
10 changes: 10 additions & 0 deletions app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
*/
class Mage_Adminhtml_Block_Newsletter_Template_Grid extends Mage_Adminhtml_Block_Widget_Grid
{
public function __construct()
{
parent::__construct();
$this->setId('newsletterTemplateGrid');
$this->setDefaultSort('template_code');
$this->setDefaultDir('desc');
$this->setSaveParametersInSession(true);
$this->setUseAjax(true);
}

protected function _construct()
{
$this->setEmptyText(Mage::helper('newsletter')->__('No Templates Found'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@ protected function _saveStockItem()
*/
protected function _filterRowData(&$rowData)
{
$rowData = array_filter($rowData, '\strlen');
$rowData = array_filter($rowData, fn ($tmpString) => strlen($tmpString ?? ''));
// Exceptions - for sku - put them back in
if (!isset($rowData[self::COL_SKU])) {
$rowData[self::COL_SKU] = null;
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Wishlist/Controller/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function allcartAction()

$qtysString = $this->getRequest()->getParam('qty');
if (isset($qtysString)) {
$qtys = array_filter(json_decode($qtysString), '\strlen');
$qtys = array_filter(json_decode($qtysString), fn ($tmpString) => strlen($tmpString ?? ''));
}

/** @var Mage_Wishlist_Model_Item $item */
Expand Down

0 comments on commit 22836e8

Please sign in to comment.