// 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
@@ -33,6 +33,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
$this->table = 'attribute_group';
$this->className = 'AttributeGroup';
$this->lang = true;
$this->_defaultOrderBy = 'position';
$this->fieldsDisplay = array(
'id_attribute_group' => array(
@@ -41,7 +42,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
),
'name' => array(
'title' => $this->l('Name'),
'width' => 140,
'width' => 'auto',
'filter_key' => 'b!name'
),
'position' => array(
@@ -530,17 +531,4 @@ class AdminAttributesGroupsControllerCore extends AdminController
parent::postProcess();
}
}
/**
* 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);
}
}