diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index 51ca2b9debb..1048dde3c51 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -225,6 +225,7 @@ if ($dirins && $action == 'initobject' && $module && GETPOST('createtablearray', $string.= "'".$obj->Field."' =>array('type'=>'".$type."', 'label'=>'".$label."', 'enabled'=>1, 'visible'=>-2"; if ($notnull) $string.= ", 'notnull'=>".$notnull; + if ($fieldname == 'ref') $string.= ", 'showoncombobox'=>1"; $string.= ", 'position'=>".$i."),\n"; $string.="
"; $i+=5;