fix extrafield hidden

This commit is contained in:
John BOTELLA 2018-11-07 09:14:29 +01:00
parent 52aa860008
commit 4f7be36249

View File

@ -6142,7 +6142,7 @@ abstract class CommonObject
if (! is_object($form)) $form=new Form($db);
$out = '';
if (is_array($extrafields->attributes[$this->table_element]['label']) && count($extrafields->attributes[$this->table_element]['label']) > 0)
{
$out .= "\n";
@ -6152,6 +6152,10 @@ abstract class CommonObject
$e = 0;
foreach($extrafields->attributes[$this->table_element]['label'] as $key=>$label)
{
if(empty($extrafields->attribute_list[$key]) && $mode == 'view'){
continue;
}
$enabled = 1;
if ($enabled && isset($extrafields->attributes[$this->table_element]['list'][$key]))
{