Fix translation of extrafields
This commit is contained in:
parent
555c5f29e1
commit
558bda5f27
@ -1028,7 +1028,7 @@ class ExtraFields
|
|||||||
$out.= (((string) $value == (string) $key)?' selected':'');
|
$out.= (((string) $value == (string) $key)?' selected':'');
|
||||||
$out.= (!empty($parent)?' parent="'.$parent.'"':'');
|
$out.= (!empty($parent)?' parent="'.$parent.'"':'');
|
||||||
$out.='>';
|
$out.='>';
|
||||||
if ($langfile) $out.=$langs->trans($val);
|
if ($langfile && $val) $out.=$langs->trans($val);
|
||||||
else $out.=$val;
|
else $out.=$val;
|
||||||
$out.='</option>';
|
$out.='</option>';
|
||||||
}
|
}
|
||||||
@ -1492,7 +1492,7 @@ class ExtraFields
|
|||||||
}
|
}
|
||||||
elseif ($type == 'select')
|
elseif ($type == 'select')
|
||||||
{
|
{
|
||||||
if ($langfile) $value=$langs->trans($param['options'][$value]);
|
if ($langfile && $param['options'][$value]) $value=$langs->trans($param['options'][$value]);
|
||||||
else $value=$param['options'][$value];
|
else $value=$param['options'][$value];
|
||||||
}
|
}
|
||||||
elseif ($type == 'sellist')
|
elseif ($type == 'sellist')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user