From ee31857f8113780a28ea00f76c962dda215437c7 Mon Sep 17 00:00:00 2001 From: Sylvain Legrand Date: Tue, 9 Jun 2026 08:05:55 +0300 Subject: [PATCH] 21.0.3 --- core/lib/infrastructure.lib.php | 2 +- core/tpl/infrastructureline_row_document.tpl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/infrastructure.lib.php b/core/lib/infrastructure.lib.php index 2d3844c..d2bf668 100644 --- a/core/lib/infrastructure.lib.php +++ b/core/lib/infrastructure.lib.php @@ -103,7 +103,7 @@ function infrastructure_addNumerotation(&$object) /** * List extrafields with "list"(Visible field) attribute > 0 for a given element type (propaldet, commandedet, ...) - * + * * @param string $elementtype Element type (propaldet, commandedet, facturedet, ...) * @return array List of extrafields [fieldname => label] */ diff --git a/core/tpl/infrastructureline_row_document.tpl.php b/core/tpl/infrastructureline_row_document.tpl.php index 5aa6794..edd9cd2 100644 --- a/core/tpl/infrastructureline_row_document.tpl.php +++ b/core/tpl/infrastructureline_row_document.tpl.php @@ -266,7 +266,7 @@ $tableElement = $object->table_element_line; if (isset($tableToConst[$tableElement]) && getDolGlobalString($tableToConst[$tableElement])) { $selectedExtrafields = explode(',', getDolGlobalString($tableToConst[$tableElement])); - } + } if (is_array($selectedExtrafields) && !empty($extrafieldsline->attributes[$object->table_element_line]['label']) && is_array($extrafieldsline->attributes[$object->table_element_line]['label'])) { foreach (array_keys($extrafieldsline->attributes[$object->table_element_line]['label']) as $efkey) { if (!in_array($efkey, $selectedExtrafields, true)) {