Skip to content
Snippets Groups Projects
Commit 0218ccef authored by David Surville's avatar David Surville
Browse files

Connecteur Octopus / LDAP : une structure Ldap peut avoir plusieurs structures...

Connecteur Octopus / LDAP : une structure Ldap peut avoir plusieurs structures parentes (ex: GREYC < ENSI et UFR des Sciences)
parent 3c670f5f
No related branches found
Tags 1.3.31
No related merge requests found
Pipeline #9656 failed
CHANGELOG
=========
1.3.30
------
- [Fix] Connecteur Octopus / LDAP : une structure Ldap peut avoir plusieurs structures parentes (ex: GREYC < ENSI et UFR des Sciences)
\ No newline at end of file
...@@ -81,7 +81,11 @@ class Structure extends AbstractEntity ...@@ -81,7 +81,11 @@ class Structure extends AbstractEntity
// ajouts d'attributs pour coller à la table d'Harpege // ajouts d'attributs pour coller à la table d'Harpege
$this->c_structure = self::extractCodeStructureHarpege($this->supanncodeentite); $this->c_structure = self::extractCodeStructureHarpege($this->supanncodeentite);
$this->c_structure_pere = $this->supanncodeentiteparent ? self::extractCodeStructureHarpege($this->supanncodeentiteparent) : null; $this->c_structure_pere = $this->supanncodeentiteparent
? is_array($this->supanncodeentiteparent)
? array_map(function($v) { return self::extractCodeStructureHarpege($v); }, $this->supanncodeentiteparent)
: self::extractCodeStructureHarpege($this->supanncodeentiteparent)
: null;
$this->lc_structure = $this->ou; $this->lc_structure = $this->ou;
$this->ll_structure = $this->ou; $this->ll_structure = $this->ou;
$this->libelle_annuaire = $this->description; $this->libelle_annuaire = $this->description;
......
...@@ -208,7 +208,7 @@ class Structure extends AbstractMapper ...@@ -208,7 +208,7 @@ class Structure extends AbstractMapper
} }
$ch[] = $libelleLong ? $str->getDescription() : $str->getOu(); $ch[] = $libelleLong ? $str->getDescription() : $str->getOu();
$code = ($parent = $str->getSupannCodeEntiteParent()) ? $code = ($parent = $str->getSupannCodeEntiteParent()) ?
LdapStructureModel::extractCodeStructureHarpege($parent) : LdapStructureModel::extractCodeStructureHarpege(is_array($parent) ? $parent[0] : $parent) :
null; null;
} while (!empty($code)); } while (!empty($code));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment