Merge pull request #12372 from OPEN-DSI/fix-admin-dict-transkey-not-defined

FIX var transkey not defined in input hidden
This commit is contained in:
Laurent Destailleur 2019-11-07 12:56:21 +01:00 committed by GitHub
commit 2aac4b382f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2011,9 +2011,9 @@ function fieldList($fieldlist, $obj = '', $tabname = '', $context = '')
if (in_array($fieldlist[$field], array('libelle', 'label', 'tracking'))) $class='quatrevingtpercent';
print '<td class="'.$classtd.'">';
$transfound=0;
$transkey='';
if (in_array($fieldlist[$field], array('label','libelle'))) // For label
{
$transkey='';
// Special case for labels
if ($tabname == MAIN_DB_PREFIX.'c_civility') {
$transkey="Civility".strtoupper($obj->code);