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

Hotfix survey

parent 797a7cd7
......@@ -31,10 +31,11 @@ class IndexAction extends CAction
//Rest::json($params); exit;
$params["answer"] = $answer;
// TODO améliorer getdataForAnser pour soit viré la création de lanswers soit charger la bonne answer
//Rest::json($params); exit;
$form = PHDB::findOne( Form::COLLECTION , array("id"=>$answer["formId"]));
$parentForm = Slug::getElementBySlug($form["id"]);
//$parentForm = Slug::getElementBySlug($form["id"]);
$parentForm = Slug::getElementBySlug($params["answer"]["parentSlug"]);
$canEditForm = false;
$canEditAnswer = false;
$canSeeAnswer = false;
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