[-] 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
2013-06-24 18:25:38 +02:00
parent fd3ce0ba6c
commit 36c7b9df48
+14 -11
View File
@@ -159,22 +159,25 @@ class AdminTabsControllerCore extends AdminController
),
'desc' => $this->l('Show or hide menu.')
),
array(
'type' => 'select',
'label' => $this->l('Parent:'),
'name' => 'id_parent',
'options' => array(
'query' => $tabs,
'id' => 'id_tab',
'name' => 'name'
)
)
),
'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',
'label' => $this->l('Parent:'),
'name' => 'id_parent',
'options' => array(
'query' => $tabs,
'id' => 'id_tab',
'name' => 'name'
)
);
return parent::renderForm();
}
@@ -324,4 +327,4 @@ class AdminTabsControllerCore extends AdminController
}
}
}
}
}