Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,6 @@ parameters:
count: 1
path: ../app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser.php

-
message: "#^Call to an undefined method Varien_Data_Collection\\:\\:addStoreFilter\\(\\)\\.$#"
count: 1
path: ../app/code/core/Mage/Adminhtml/Block/Cms/Block/Grid.php

-
message: "#^Call to an undefined method Varien_Data_Collection\\:\\:addStoreFilter\\(\\)\\.$#"
count: 1
path: ../app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid.php

-
message: "#^Call to an undefined method Mage_Core_Helper_Abstract\\:\\:getNamePrefixOptions\\(\\)\\.$#"
count: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,14 @@ protected function _afterLoadCollection()
}

/**
* @param Varien_Data_Collection $collection
* @param Mage_Checkout_Model_Resource_Agreement_Collection $collection
* @param Mage_Adminhtml_Block_Widget_Grid_Column $column
*/
protected function _filterStoreCondition($collection, $column)
{
if (!$value = $column->getFilter()->getValue()) {
return;
if ($value = $column->getFilter()->getValue()) {
$collection->addStoreFilter($value);
}

$this->getCollection()->addStoreFilter($value);
}

/**
Expand Down
10 changes: 6 additions & 4 deletions app/code/core/Mage/Adminhtml/Block/Cms/Block/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,15 @@ protected function _afterLoadCollection()
return parent::_afterLoadCollection();
}

/**
* @param Mage_Cms_Model_Resource_Block_Collection $collection
* @param Mage_Adminhtml_Block_Widget_Grid_Column $column
*/
protected function _filterStoreCondition($collection, $column)
{
if (!$value = $column->getFilter()->getValue()) {
return;
if ($value = $column->getFilter()->getValue()) {
$collection->addStoreFilter($value);
}

$this->getCollection()->addStoreFilter($value);
}

/**
Expand Down
10 changes: 6 additions & 4 deletions app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,15 @@ protected function _afterLoadCollection()
return parent::_afterLoadCollection();
}

/**
* @param Mage_Cms_Model_Resource_Page_Collection $collection
* @param Mage_Adminhtml_Block_Widget_Grid_Column $column
*/
protected function _filterStoreCondition($collection, $column)
{
if (!$value = $column->getFilter()->getValue()) {
return;
if ($value = $column->getFilter()->getValue()) {
$collection->addStoreFilter($value);
}

$this->getCollection()->addStoreFilter($value);
}

/**
Expand Down