// Remove unattached tabs from AdminTabs display

This commit is contained in:
tDidierjean
2012-02-29 17:02:44 +00:00
parent 23459ace4d
commit ec27502a99
+2 -11
View File
@@ -159,11 +159,7 @@ class AdminTabsControllerCore extends AdminController
'options' => array(
'query' => $tabs,
'id' => 'id_tab',
'name' => 'name',
'default' => array(
'value' => -1,
'label' => $this->l('None')
)
'name' => 'name'
)
)
),
@@ -186,7 +182,7 @@ class AdminTabsControllerCore extends AdminController
$this->addRowAction('delete');
$this->addRowAction('details');
$this->_where = 'AND a.`id_parent` = 0 OR a.id_parent = -1';
$this->_where = 'AND a.`id_parent` = 0';
$this->_orderBy = 'position';
return parent::renderList();
@@ -276,11 +272,6 @@ class AdminTabsControllerCore extends AdminController
}
}
public function getList($id_lang, $order_by = null, $order_way = null, $start = 0, $limit = null, $id_lang_shop = false)
{
parent::getList($id_lang, 'position', $order_way, $start, $limit, $id_lang_shop);
}
protected function afterImageUpload()
{
if (!($obj = $this->loadObject(true)))