FIX code not visible correctly into view of dictionnary

This commit is contained in:
Laurent Destailleur (aka Eldy) 2025-01-20 08:53:47 +01:00
parent cce24b5045
commit df861e76bc

View File

@ -2367,7 +2367,10 @@ if ($id > 0) {
continue;
}
if ($value == 'element') {
// Management of several special cases and exceptions
if ($value == 'code' && $id == DICT_PRODUCT_NATURE) {
$valuetoshow = (int) $valuetoshow;
} elseif ($value == 'element') {
$valuetoshow = isset($elementList[$valuetoshow]) ? $elementList[$valuetoshow] : $valuetoshow;
} elseif ($value == 'source') {
$valuetoshow = isset($sourceList[$valuetoshow]) ? $sourceList[$valuetoshow] : $valuetoshow;
@ -2543,6 +2546,7 @@ if ($id > 0) {
$valuetoshow = $TDurationTypes[$obj->{$value}];
}
}
$class .= ($class ? ' ' : '').'tddict';
if ($value == 'name') {
$class .= ' tdoverflowmax200';