]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14593 - delete icons in the question bank do not work. This was a regression...
authortjhunt <tjhunt>
Tue, 27 May 2008 10:35:13 +0000 (10:35 +0000)
committertjhunt <tjhunt>
Tue, 27 May 2008 10:35:13 +0000 (10:35 +0000)
question/editlib.php

index 33d95fcc56a8a7cf70765ccab7eb7a317d5e263d..05c8d7a6da7a3d79676a405c23bbaedabea64afd 100644 (file)
@@ -523,7 +523,7 @@ function question_showbank($tabname, $contexts, $pageurl, $cm, $page, $perpage,
 
     if (optional_param('deleteselected', false, PARAM_BOOL)){ // teacher still has to confirm
         // make a list of all the questions that are selected
-        $rawquestions = (array) data_submitted();
+        $rawquestions = $_REQUEST; // This code is called by both POST forms and GET links, so cannot use data_submitted.
         $questionlist = '';  // comma separated list of ids of questions to be deleted
         $questionnames = ''; // string with names of questions separated by <br /> with
                              // an asterix in front of those that are in use