From edbd58b1029fd45fcb5bbda29bfabf474ae6df23 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 27 Feb 2026 14:19:50 +0100 Subject: [PATCH] Doc --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 2dfa39b3165..b487a4efb50 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -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') {