diff --git a/views/tpls/forms/sommom/organisme.php b/views/tpls/forms/sommom/organisme.php index 2d3dfda58af846f79b5990346496c5d5d60f96da..ea97988b7bb58f88ddba5bf3c504f3258a560f22 100644 --- a/views/tpls/forms/sommom/organisme.php +++ b/views/tpls/forms/sommom/organisme.php @@ -20,11 +20,8 @@ } } - if (isset($this->costum["contextId"])) { - //$communityLinks = Element::getByTypeAndId($this->costum["contextType"],$this->costum["contextId"]); - $communityLinks = Organization::getById($this->costum["contextId"]); - - + if (isset($el["_id"])) { + $communityLinks = Organization::getById((string)$el["_id"]); } $partenaire = false;