From 500bb7bc96ad53080389559277163db8fb30afee Mon Sep 17 00:00:00 2001 From: John BOTELLA Date: Tue, 13 Nov 2018 10:20:34 +0100 Subject: [PATCH] best conditions testing --- htdocs/core/class/commonobject.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 67e06ea59f3..870de68948f 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -6152,7 +6152,8 @@ abstract class CommonObject $e = 0; foreach($extrafields->attributes[$this->table_element]['label'] as $key=>$label) { - if(empty($extrafields->attribute_list[$key]) && $mode == 'view'){ + if (isset($extrafields->attributes[$this->table_element]['list'][$key]) + && empty($extrafields->attributes[$this->table_element]['list'][$key]) && $mode == 'view'){ continue; }