// small fix

This commit is contained in:
Rémi Gaillard committed 2013-06-25 15:50:36 +02:00
1 parent 502472dfba
commit f73eb070ab
1 file changed
+4 -1
+4 -1
View File
@@ -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:'),