From f1524372add2ba489e65831cc62f20110f72aec1 Mon Sep 17 00:00:00 2001 From: Francis Appels Date: Mon, 6 Dec 2021 16:34:50 +0100 Subject: [PATCH] Fix extrafield showOutputField old syntax always hidden. --- htdocs/core/class/extrafields.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index e73f83d1340..61c40499150 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -1514,7 +1514,7 @@ class ExtraFields $label = $this->attribute_label[$key]; $type = $this->attribute_type[$key]; $help = ''; // Not supported with old syntax - $hidden = (empty($list) ? 1 : 0); // If $list empty, we are sure it is hidden, otherwise we show. If it depends on mode (view/create/edit form or list, this must be filtered by caller) + $hidden = 0; // hidden option only available for new syntax } if ($hidden) {