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

Merge branch '5911-supannrefid-field-is-missing-for-etablissement' into '1.4-dev'

Resolve "supannRefId field is missing for "etablissement""

See merge request fusiondirectory/fd-plugins!478

(cherry picked from commit f59b887f)

f6025fb6 🚑 fix(supann) Fix typo in etablissement
parent af8b244d
......@@ -157,7 +157,7 @@ class etablissement extends simplePlugin
$this->attributesAccess['set_root']->setInLdap(FALSE);
$this->attributesAccess['set_root']->setDisabled(($root_code !== FALSE) && ($root_code != $this->supannEtablissement));
$this->set_root = (($root_code !== FALSE) && ($root_code == $this->supannEtablissement));
$this->attributes['set_root']->setInitialValue($this->set_root);
$this->attributesAccess['set_root']->setInitialValue($this->set_root);
}
protected function ldap_remove()
......@@ -189,7 +189,7 @@ class etablissement extends simplePlugin
$ldap = $config->get_ldap_link();
$wasRoot = $this->attributes['set_root']->getInitialValue();
$wasRoot = $this->attributesAccess['set_root']->getInitialValue();
$root_mode = FALSE;
$root_code = $this->get_root_code();
if (($root_code === FALSE) && ($this->set_root)) {
......
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