// small fix
This commit is contained in:
1 parent
502472dfba
commit
f73eb070ab
1 file changed
+4
-1
@@ -166,8 +166,11 @@ class AdminTabsControllerCore extends AdminController
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!Validate::isLoadedObject($this->object) || $this->object->id_parent > 0)
|
$display_parent = true;
|
||||||
|
if (Validate::isLoadedObject($this->object) && !class_exists($this->object->class_name.'Controller'))
|
||||||
|
$display_parent = false;
|
||||||
|
|
||||||
|
if ($display_parent)
|
||||||
$this->fields_form['input'][] = array(
|
$this->fields_form['input'][] = array(
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'label' => $this->l('Parent:'),
|
'label' => $this->l('Parent:'),
|
||||||
|
|||||||
Reference in new issue
Block a user