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

Merge branch 'cherry-pick-f59b887f' into '1.3-fixes'

Merge branch '5911-supannrefid-field-is-missing-for-etablissement' into '1.3-fixes'

See merge request fusiondirectory/fd-plugins!479
parents af8b244d ee969c68
...@@ -157,7 +157,7 @@ class etablissement extends simplePlugin ...@@ -157,7 +157,7 @@ class etablissement extends simplePlugin
$this->attributesAccess['set_root']->setInLdap(FALSE); $this->attributesAccess['set_root']->setInLdap(FALSE);
$this->attributesAccess['set_root']->setDisabled(($root_code !== FALSE) && ($root_code != $this->supannEtablissement)); $this->attributesAccess['set_root']->setDisabled(($root_code !== FALSE) && ($root_code != $this->supannEtablissement));
$this->set_root = (($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() protected function ldap_remove()
...@@ -189,7 +189,7 @@ class etablissement extends simplePlugin ...@@ -189,7 +189,7 @@ class etablissement extends simplePlugin
$ldap = $config->get_ldap_link(); $ldap = $config->get_ldap_link();
$wasRoot = $this->attributes['set_root']->getInitialValue(); $wasRoot = $this->attributesAccess['set_root']->getInitialValue();
$root_mode = FALSE; $root_mode = FALSE;
$root_code = $this->get_root_code(); $root_code = $this->get_root_code();
if (($root_code === FALSE) && ($this->set_root)) { 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