Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.9.2
-
Fix Version/s: None
-
Component/s: Quiz
-
Labels:None
-
Environment:LAMP (Linux, Apache 2, Moodle, PHP)
-
Affected Branches:MOODLE_19_STABLE
Description
When trying to edit a Quiz Question from the Analysis report (http://somesite.com/mod/quiz/report.php?q=54&mode=analysis) a PopUp window gives the
user this error message:
"Need to pass couseid or cmid to this script"
This condition is due to a simple issue with mod/quiz/report/analysis/report.php line # 317 here is the patch
— mod/quiz/report/analysis/report.php 2008-08-04 19:21:57.000000000 -0400
+++ mod/quiz/report/analysis/report.php 2008-08-04 18:24:29.000000000 -0400
@@ -314,7 +314,7 @@
$qid = $q['id'];
$question = get_record('question', 'id', $qid);
if (question_has_capability_on($question, 'edit') || question_has_capability_on($question, 'view')) {
- $qnumber = " (".link_to_popup_window('/question/question.php?id='.$qid,'&cmid='.$cm->id.'editquestion', $qid, 450, 550, get_string('edit'), 'none', true ).") ";
+ $qnumber = " (".link_to_popup_window('/question/question.php?id='.$qid.'&cmid='.$cm->id,'editquestion', $qid, 450, 550, get_string('edit'), 'none', true ).") ";
} else {
$qnumber = $qid;
}
Attachments
Issue Links
| This issue duplicates: | ||||
| MDL-15583 | When click on the Q# in Item Analysis Table, some required parameters are not passing alone |
|
|
|
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions