Commit e9185c7e authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch...

Merge branch '6046-supann-composite-attributes-do-not-remove-values-when-last-value-is-removed' into '1.4-dev'

Resolve "SupAnn composite attributes do not remove values when last value is removed"

See merge request fusiondirectory/fd-plugins!711
parents 41ff52ef 0a92f23c
......@@ -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