// fix position in list for products, product images. still need to fix display after change position product images

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10302 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-11-20 19:47:07 +00:00
parent 70c92e1d38
commit 9e8d16ad6a
5 changed files with 10 additions and 24 deletions
@@ -37,6 +37,7 @@ class AdminCarriersControllerCore extends AdminController
$this->addRowAction('edit');
$this->addRowAction('delete');
$this->_defaultOrderBy = 'position';
$this->requiredDatabase = true;
$this->context = Context::getContext();
@@ -630,11 +631,6 @@ class AdminCarriersControllerCore extends AdminController
*/
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);
foreach ($this->_list as $key => $list)