Merge pull request #14006 from bafbes/abb110215

fix:The label must be a dictionary key
This commit is contained in:
Laurent Destailleur 2020-06-11 23:15:52 +02:00 committed by GitHub
commit 3527d011f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -713,7 +713,7 @@ if ($dirins && $action == 'initobject' && $module && GETPOST('createtablearray',
$notnull = ($obj->Null == 'YES' ? 0 : 1);
if ($fieldname == 'fk_user_modif') $notnull = -1;
// label
$label = preg_replace('/_/', ' ', ucfirst($fieldname));
$label = preg_replace('/_/', '', ucfirst($fieldname));
if ($fieldname == 'rowid') $label = 'TechnicalID';
if ($fieldname == 'import_key') $label = 'ImportId';
if ($fieldname == 'fk_soc') $label = 'ThirdParty';