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

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

issue #6046
Showing with 5 additions and 0 deletions
+5 -0
......@@ -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;
......
Supports Markdown
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