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

🚑 fix(supann) Fix removal of supannCMS tab

TaggedAttribute was breaking removal

issue #6015
parent ac185782
......@@ -126,4 +126,14 @@ class supannCMS extends simplePlugin
$this->attributesAccess['supannCMSAppAffectation']->supannPrepareSave(TRUE);
return parent::prepare_save();
}
protected function prepare_remove ()
{
parent::prepare_remove();
/* Remove tagged values as well */
$this->supannCMSId = [];
$this->supannCMSAppId = [];
$this->attributesAccess['supannCMSId']->fillLdapValue($this->attrs);
$this->attributesAccess['supannCMSAppId']->fillLdapValue($this->attrs);
}
}
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