From 2b16ee75cd613d2485adfe0392d64fb9dbcd9e34 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 12 Apr 2018 11:29:16 +0200 Subject: [PATCH] Fix ref must be visible on combolist --- htdocs/modulebuilder/index.php | 1 + 1 file changed, 1 insertion(+) 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;