This commit is contained in:
Laurent Destailleur 2026-02-27 14:19:50 +01:00
parent cd1c327173
commit edbd58b102

View file

@ -10512,7 +10512,7 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
}
$extrafields->fetch_name_optionals_label($object->table_element, true);
if ($object->fetch_optionals() > 0) {
if ($object->fetch_optionals() > 0) { // @FIXME: Remove this, the fetch should have been done already, by the caller of getCommonSubstitutionArray()
if (is_array($extrafields->attributes[$object->table_element]['label']) && count($extrafields->attributes[$object->table_element]['label']) > 0) {
foreach ($extrafields->attributes[$object->table_element]['label'] as $key => $label) {
if ($extrafields->attributes[$object->table_element]['type'][$key] == 'date') {