Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quiz-3157376
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
quiz-3157376
Commits
2dc2ba61
Commit
2dc2ba61
authored
14 years ago
by
falcon
Browse files
Options
Downloads
Patches
Plain Diff
#817542
by incrn8: Fixed quiz_node_relationship doesn't exist error
(Missing {} around table in sql)
parent
189ed61b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
question_types/quiz_question/quiz_question.module
+2
-2
2 additions, 2 deletions
question_types/quiz_question/quiz_question.module
with
2 additions
and
2 deletions
question_types/quiz_question/quiz_question.module
+
2
−
2
View file @
2dc2ba61
...
...
@@ -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'
]));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment