Verified Commit 0a92f23c authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(supann) Fix SupannCompositeAttribute saving when all values are removed

issue #6046
parent 41ff52ef
......@@ -29,6 +29,11 @@ class SupannOrderedArrayAttribute extends OrderedArrayAttribute
$this->attribute->setValue($value);
$this->attribute->supannGetValues($values);
}
if (empty($this->value)) {
/* All values were removed, we still need to sync individual attributes */
$this->attribute->setValue('');
$this->attribute->supannGetValues($values);
}
foreach ($values as $ldapName => $array) {
if ($this->plugin->attributesAccess[$ldapName]->isVisible()) {
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment