Skip to content

Commit

Permalink
MDL-12305 - Quiz reorder tool broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Nov 21, 2007
1 parent ac6fa5e commit a5f1acc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mod/quiz/edit.php
Expand Up @@ -99,15 +99,11 @@ function module_specific_controls($totalnumber, $recurse, $category, $cmid){
$streditingquestions = get_string('editquestions', "quiz");
$streditingquiz = get_string('editinga', 'moodle', $strquiz);




// Get the course object and related bits.
if (! $course = get_record("course", "id", $quiz->course)) {
error("This course doesn't exist");
}


// Log this visit.
add_to_log($cm->course, 'quiz', 'editquestions',
"view.php?id=$cm->id", "$quiz->id", $cm->id);
Expand Down Expand Up @@ -247,7 +243,7 @@ function module_specific_controls($totalnumber, $recurse, $category, $cmid){
$key = $matches[1];
$quiz->grades[$key] = $value;
quiz_update_question_instance($quiz->grades[$key], $key, $quiz->instance);
} elseif (preg_match('!^q([0-9]+)$!', $key, $matches)) { // Parse input for ordering info
} elseif (preg_match('!^o([0-9]+)$!', $key, $matches)) { // Parse input for ordering info
$key = $matches[1];
$questions[$value] = $oldquestions[$key];
}
Expand Down

0 comments on commit a5f1acc

Please sign in to comment.