[-] BO: This is now not possible to move a tab with id_parent = 0 to an another tab

This commit is contained in:
Rémi Gaillard committed 2013-06-24 18:25:38 +02:00
1 parent fd3ce0ba6c
commit 36c7b9df48
1 file changed
+10 -7
+10 -7
View File
@@ -159,7 +159,16 @@ class AdminTabsControllerCore extends AdminController
), ),
'desc' => $this->l('Show or hide menu.') 'desc' => $this->l('Show or hide menu.')
), ),
array( ),
'submit' => array(
'title' => $this->l(' Save '),
'class' => 'button'
)
);
if (!Validate::isLoadedObject($this->object) || $this->object->id_parent > 0)
$this->fields_form['input'][] = array(
'type' => 'select', 'type' => 'select',
'label' => $this->l('Parent:'), 'label' => $this->l('Parent:'),
'name' => 'id_parent', 'name' => 'id_parent',
@@ -168,12 +177,6 @@ class AdminTabsControllerCore extends AdminController
'id' => 'id_tab', 'id' => 'id_tab',
'name' => 'name' 'name' => 'name'
) )
)
),
'submit' => array(
'title' => $this->l(' Save '),
'class' => 'button'
)
); );
return parent::renderForm(); return parent::renderForm();