Merge pull request #10747 from atm-gauthier/9.0_fix_extrafields_always_visible_in_view_mode
FIX : extrafields always visible on view mode
This commit is contained in:
commit
9ad1597fcc
@ -6299,6 +6299,7 @@ abstract class CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (($mode == 'create' || $mode == 'edit') && abs($visibility) != 1 && abs($visibility) != 3) continue; // <> -1 and <> 1 and <> 3 = not visible on forms, only on list
|
if (($mode == 'create' || $mode == 'edit') && abs($visibility) != 1 && abs($visibility) != 3) continue; // <> -1 and <> 1 and <> 3 = not visible on forms, only on list
|
||||||
|
elseif($mode == 'view' && empty($visibility)) continue;
|
||||||
if (empty($perms)) continue;
|
if (empty($perms)) continue;
|
||||||
|
|
||||||
// Load language if required
|
// Load language if required
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user