]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for Bug #5588 - Editing a question after sorting leads to an error. Merged from...
authortjhunt <tjhunt>
Mon, 22 May 2006 15:43:53 +0000 (15:43 +0000)
committertjhunt <tjhunt>
Mon, 22 May 2006 15:43:53 +0000 (15:43 +0000)
question/editlib.php

index 714985e6000357a1fe3ccf5df6eb895c9c5e10d2..5135123f4f7b94565116e1dfb8c131d3bcc08a3c 100644 (file)
@@ -316,9 +316,8 @@ function question_list($course, $categoryid, $quizid=0,
 
     $canedit = isteacheredit($category->course);
 
-    echo '<form method="post" action="edit.php">';
+    echo '<form method="post" action="edit.php?courseid='.$course->id.'">';
     echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
-    echo "<input type=\"hidden\" name=\"courseid\" value=\"$course->id\" />";
     print_simple_box_start('center', '100%', '#ffffff', 0);
     echo '<table id="categoryquestions" cellspacing="0"><tr>';
     $actionwidth = $canedit ? 95 : 70;