Skip to content

Commit 3f09f98

Browse files
Survey: Fix edit doodle answers - refs BT#20904
1 parent 9727731 commit 3f09f98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

public/main/survey/surveyUtil.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,15 @@ public static function saveAnswer(
108108
$optionId = $optionId.'@:@'.$otherOption;
109109
}
110110

111+
$sessionId = api_get_session_id();
111112
$answer = new CSurveyAnswer();
112113
$answer
113114
->setUser($user)
114115
->setSurvey($survey)
115116
->setQuestion($question)
116117
->setOptionId($optionId)
117118
->setValue((int) $optionValue)
119+
->setSessionId($sessionId)
118120
;
119121

120122
$em = Database::getManager();

0 commit comments

Comments
 (0)