Skip to content

Commit

Permalink
Fixed UI bug in Newsletter Templates backend page, filters not saved …
Browse files Browse the repository at this point in the history
…in session (#4077)
  • Loading branch information
eneiasramos authored Jul 6, 2024
1 parent 7ec8830 commit ced031d
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit ced031d

Please sign in to comment.