Skip to content

Commit

Permalink
Fix ambiguous column name with alias
Browse files Browse the repository at this point in the history
  • Loading branch information
spinsch committed Oct 25, 2021
1 parent b4e527a commit 4b7f3ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/core/Mage/Adminhtml/Block/Promo/Quote/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ protected function _prepareCollection()
$collection = Mage::getModel('salesrule/rule')
->getResourceCollection();
$collection->addWebsitesToResult();
$collection->addFilterToMap('times_used', 'main_table.times_used');

$this->setCollection($collection);

parent::_prepareCollection();
Expand Down

0 comments on commit 4b7f3ea

Please sign in to comment.