Merge pull request #13993 from glu000/11.0-fix-13991

Fix #13991
This commit is contained in:
Laurent Destailleur 2020-05-28 18:27:39 +02:00 committed by GitHub
commit 113144ea21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1686,8 +1686,13 @@ class ExtraFields
}
elseif ($type == 'select')
{
if ($langfile && $param['options'][$value]) $value = $langs->trans($param['options'][$value]);
else $value = $param['options'][$value];
$valstr = $param['options'][$value];
if (($pos = strpos($valstr, "|")) !== false)
{
$valstr = substr($valstr, 0, $pos);
}
if ($langfile && $valstr) $value = $langs->trans($valstr);
else $value = $valstr;
}
elseif ($type == 'sellist')
{