FIX not create/update extrafields for visibility 0,2 and 5

This commit is contained in:
Regis Houssin
2023-08-09 13:18:42 +02:00
parent bf51e493dd
commit 75ea7e52b2

View File

@@ -2106,7 +2106,8 @@ class ExtraFields
) {
continue;
}
if (empty($visibility)) {
// O: never visible, 2: visible only in list, 5: no creation, no update
if (in_array($visibility, array(0, 2, 5))) {
continue;
}
if (empty($perms)) {