Unverified Commit 8008f302 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(supann) Make sure etablissement ldap_save gets called

This should fix set_root checkbox behavior

issue #5911
parent 8359219e
......@@ -162,7 +162,13 @@ class etablissement extends simplePlugin
protected function ldap_remove()
protected function shouldSave ()
/* We need to call ldap_save if set_root is or was checked, even if nothing else changed */
return (parent::shouldSave() || $this->set_root || $this->attributesAccess['set_root']->getInitialValue());
protected function ldap_remove ()
global $config;
$errors = parent::ldap_remove();
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