Update dict.php

This commit is contained in:
Laurent Destailleur 2020-10-14 17:40:27 +02:00 committed by GitHub
parent fd1fa1c777
commit bb367a4489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1625,7 +1625,7 @@ if ($id)
$valuetoshow = ($obj->label && $key != strtoupper($obj->label) ? $key : $obj->{$fieldlist[$field]});
} elseif ($fieldlist[$field] == 'code' && $id == 3) {
$valuetoshow = $obj->state_code;
} elseif ($fieldlist[$field] == 'label' && $tabname[$_GET["id"]] == MAIN_DB_PREFIX.'c_product_nature') {
} elseif ($fieldlist[$field] == 'label' && $tabname[$id] == MAIN_DB_PREFIX.'c_product_nature') {
$langs->load("products");
$valuetoshow = $langs->trans($obj->{$fieldlist[$field]});
}