mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
LSldapObject::validateAttrsData(): fix handling attribute generation of empty required attributes even if their new value have been provided
This commit is contained in:
parent
0eb0143921
commit
b1ee3460b1
1 changed files with 8 additions and 1 deletions
|
@ -507,8 +507,15 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
|||
if (!$this -> validateAttrData($LSform, $attr, $justCheck)) {
|
||||
$retval = false;
|
||||
}
|
||||
// Attribute not empty, remove it from force generated attributes list (if present)
|
||||
if (
|
||||
!empty($attr_values
|
||||
&& ($key = array_search($attr_name, $forceGeneration)) !== false)
|
||||
) {
|
||||
unset($forceGeneration[$key]);
|
||||
}
|
||||
}
|
||||
else if(
|
||||
if(
|
||||
in_array($attr_name, $forceGeneration)
|
||||
|| (empty($attr_values) && $attr -> isRequired())
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue