Fix ref must be visible on combolist

This commit is contained in:
Laurent Destailleur 2018-04-12 11:29:16 +02:00
parent 07853b35aa
commit 2b16ee75cd

View File

@ -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.="<br>";
$i+=5;