Skip to content

Commit

Permalink
[-] BO - fixed bug #PSCFV-8614
Browse files Browse the repository at this point in the history
  • Loading branch information
vAugagneur committed Apr 18, 2013
1 parent 53cc380 commit e9b8af0
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions controllers/admin/AdminCmsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,22 +219,12 @@ public function displayList($token = null)
/* Close list table and submit button */
$this->displayListFooter($token);
}

/**
* Modifying initial getList method to display position feature (drag and drop)
*/
public function getList($id_lang, $order_by = null, $order_way = null, $start = 0, $limit = null, $id_lang_shop = false)
{
if ($order_by && $this->context->cookie->__get($this->table.'Orderby'))
$order_by = $this->context->cookie->__get($this->table.'Orderby');
else
$order_by = 'position';

parent::getList($id_lang, $order_by, $order_way, $start, $limit, $id_lang_shop);
}


public function postProcess()
{
if (Tools::isSubmit($this->table.'Orderby') || Tools::isSubmit($this->table.'Orderway'))
$this->filter = true;

if (Tools::isSubmit('viewcms') && ($id_cms = (int)Tools::getValue('id_cms')) && ($cms = new CMS($id_cms, $this->context->language->id)) && Validate::isLoadedObject($cms))
{
$redir = $this->context->link->getCMSLink($cms);
Expand Down

0 comments on commit e9b8af0

Please sign in to comment.