mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
LSattribute::addToForm(): fix freezing
This commit is contained in:
parent
25f2ccd32e
commit
29966b75ae
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ class LSattribute extends LSlog_staticLoggerClass {
|
||||||
if($this -> getConfig('required', false, 'bool'))
|
if($this -> getConfig('required', false, 'bool'))
|
||||||
$form -> setRequired($this -> name);
|
$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.");
|
self :: log_debug("Attribute ".$this -> name." is freeze in form $idForm.");
|
||||||
$element -> freeze();
|
$element -> freeze();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue