Merge pull request #25597 from hregis/fix_extrafield

FIX not create/update extrafields for visibility 0,2 and 5
This commit is contained in:
Laurent Destailleur 2023-08-09 15:21:30 +02:00 committed by GitHub
commit eec2aabd50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)) {