Survey: Fix edit doodle answers - refs BT#20904

pull/4855/head
christian 1 year ago
parent 9727731ef2
commit 3f09f98e0f
  1. 2
      public/main/survey/surveyUtil.class.php

@ -108,6 +108,7 @@ class SurveyUtil
$optionId = $optionId.'@:@'.$otherOption;
}
$sessionId = api_get_session_id();
$answer = new CSurveyAnswer();
$answer
->setUser($user)
@ -115,6 +116,7 @@ class SurveyUtil
->setQuestion($question)
->setOptionId($optionId)
->setValue((int) $optionValue)
->setSessionId($sessionId)
;
$em = Database::getManager();

Loading…
Cancel
Save