LSattribute::addToForm(): fix freezing

This commit is contained in:
Benjamin Renard 2021-11-29 12:46:58 +01:00
parent 25f2ccd32e
commit 29966b75ae

View file

@ -245,7 +245,7 @@ class LSattribute extends LSlog_staticLoggerClass {
if($this -> getConfig('required', false, 'bool'))
$form -> setRequired($this -> name);
if ( ($form_mode === false) || ($myRights != 'w') ) {
if ( !$form_mode || ($myRights != 'w') ) {
self :: log_debug("Attribute ".$this -> name." is freeze in form $idForm.");
$element -> freeze();
}