FIX #18974
This commit is contained in:
parent
1dec9877c2
commit
099b2da2dc
@ -2079,9 +2079,15 @@ class ExtraFields
|
|||||||
}
|
}
|
||||||
|
|
||||||
$enabled = 1;
|
$enabled = 1;
|
||||||
if (isset($this->attributes[$object->table_element]['list'][$key])) {
|
if (isset($this->attributes[$object->table_element]['enabled'][$key])) { // 'enabled' is often a condition on module enabled or not
|
||||||
$enabled = dol_eval($this->attributes[$object->table_element]['list'][$key], 1);
|
$enabled = dol_eval($this->attributes[$object->table_element]['enabled'][$key], 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$visibility = 1;
|
||||||
|
if (isset($this->attributes[$object->table_element]['list'][$key])) { // 'list' is option for visibility
|
||||||
|
$visibility = dol_eval($this->attributes[$object->table_element]['list'][$key], 1);
|
||||||
|
}
|
||||||
|
|
||||||
$perms = 1;
|
$perms = 1;
|
||||||
if (isset($this->attributes[$object->table_element]['perms'][$key])) {
|
if (isset($this->attributes[$object->table_element]['perms'][$key])) {
|
||||||
$perms = dol_eval($this->attributes[$object->table_element]['perms'][$key], 1);
|
$perms = dol_eval($this->attributes[$object->table_element]['perms'][$key], 1);
|
||||||
@ -2089,6 +2095,9 @@ class ExtraFields
|
|||||||
if (empty($enabled)) {
|
if (empty($enabled)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (empty($visibility)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (empty($perms)) {
|
if (empty($perms)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user