// Remove unattached tabs from AdminTabs display
This commit is contained in:
@@ -159,11 +159,7 @@ class AdminTabsControllerCore extends AdminController
|
|||||||
'options' => array(
|
'options' => array(
|
||||||
'query' => $tabs,
|
'query' => $tabs,
|
||||||
'id' => 'id_tab',
|
'id' => 'id_tab',
|
||||||
'name' => 'name',
|
'name' => 'name'
|
||||||
'default' => array(
|
|
||||||
'value' => -1,
|
|
||||||
'label' => $this->l('None')
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -186,7 +182,7 @@ class AdminTabsControllerCore extends AdminController
|
|||||||
$this->addRowAction('delete');
|
$this->addRowAction('delete');
|
||||||
$this->addRowAction('details');
|
$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';
|
$this->_orderBy = 'position';
|
||||||
|
|
||||||
return parent::renderList();
|
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()
|
protected function afterImageUpload()
|
||||||
{
|
{
|
||||||
if (!($obj = $this->loadObject(true)))
|
if (!($obj = $this->loadObject(true)))
|
||||||
|
|||||||
Reference in New Issue
Block a user