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

FIX var transkey not defined in input hidden
This commit is contained in:
Laurent Destailleur 2019-12-30 22:01:16 +01:00 committed by GitHub
commit 10d6d00c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1985,9 +1985,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')))
{
$transkey='';
// Special case for labels
if ($tabname == MAIN_DB_PREFIX.'c_civility') {
$transkey="Civility".strtoupper($obj->code);