Skip to content
Snippets Groups Projects
Commit 2dc2ba61 authored by falcon's avatar falcon
Browse files

#817542 by incrn8: Fixed quiz_node_relationship doesn't exist error

(Missing {} around table in sql)
parent 189ed61b
No related branches found
No related tags found
No related merge requests found
......@@ -792,11 +792,11 @@ function quiz_question_report_form($question, $showpoints, $showfeedback, $allow
// If need to specify the score weight if it isn't already specified.
if (!isset($response_instance->question->score_weight)) {
$sql = 'SELECT qnr.max_score
FROM quiz_node_relationship qnr
FROM {quiz_node_relationship} qnr
WHERE qnr.child_vid = %d
AND qnr.parent_vid = (
SELECT vid
FROM quiz_node_results
FROM {quiz_node_results}
WHERE result_id = %d
)';
$qnr_max_score = db_result(db_query($sql, $question->vid, $answer['result_id']));
......
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