Commit f9b675ca authored by Raph El's avatar Raph El
Browse files

Merge branch 'development' of https://gitlab.adullact.net/pixelhumain/survey into development

parents 51f67895 e90e3d54
......@@ -626,7 +626,15 @@ class Form {
else
$form = PHDB::findOneById( Form::COLLECTION, $_GET["form"] );
$params["parentForm"] = $form;
$communityLinks = array();
if(!empty($params["parent"])){
foreach ($params["parent"] as $key => $value) {
$cl= Element::getCommunityByTypeAndId($key,$value["type"]);
if(!empty($cl))
$communityLinks = array_merge($communityLinks, $cl);
}
}
$params["parentForm"]["communityLinks"]=$communityLinks;
if( !isset($params["el"]) && !empty($form) && isset($form["parent"]) ){
$params["el"]=self::getFirstParentForm($form);
$allforms = [];
......
Markdown is supported
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