Skip to content
Snippets Groups Projects
Commit 12ac6684 authored by Devin Zuczek's avatar Devin Zuczek Committed by Devin Zuczek
Browse files

Issue #2411563 by djdevin: fixed critical issue where per question feedback is...

Issue #2411563 by djdevin: fixed critical issue where per question feedback is deleted when updating question outside of a form
parent 19dfabad
No related branches found
No related tags found
No related merge requests found
......@@ -186,9 +186,13 @@ abstract class QuizQuestion {
if (isset($this->nodeProperties)) {
return $this->nodeProperties;
}
$props['max_score'] = db_query('SELECT max_score
FROM {quiz_question_properties}
WHERE nid = :nid AND vid = :vid', array(':nid' => $this->node->nid, ':vid' => $this->node->vid))->fetchField();
$result = db_query('SELECT *
FROM {quiz_question_properties}
WHERE nid = :nid AND vid = :vid', array(':nid' => $this->node->nid, ':vid' => $this->node->vid));
$row = $result->fetch();
$props['max_score'] = $row->max_score;
$props['feedback']['value'] = $row->feedback;
$props['feedback']['format'] = $row->feedback_format;
$props['is_quiz_question'] = TRUE;
$this->nodeProperties = $props;
return $props;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment