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; }