]> git.mjollnir.org Git - moodle.git/commitdiff
Solved sesskey issue in calculated questions. Bug 2464
authorstronk7 <stronk7>
Mon, 31 Jan 2005 16:40:08 +0000 (16:40 +0000)
committerstronk7 <stronk7>
Mon, 31 Jan 2005 16:40:08 +0000 (16:40 +0000)
(http://moodle.org/bugs/bug.php?op=show&bugid=2464)

mod/quiz/questiontypes/datasetdependent/datasetitems.php

index a55ac361d931bef26fb8afce1ab0ca0d60166abf..170dabf0cbd98e9cc4baed9f13fd08a400a6ec31 100644 (file)
     $addtable->align = $table->align;
     $addtable->data = array($addline);
     echo "<form name=\"addform\" method=\"post\" action=\"question.php\">
+            <input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\"/>
             <input type=\"hidden\" name=\"regenerateddefid\" value=\"0\"/>
             <input type=\"hidden\" name=\"id\" value=\"$question->id\"/>
             <input type=\"hidden\" name=\"editdatasets\" value=\"1\"/>";
 // Print form with current datasets
     if ($table->data) {
         echo "<form method=\"post\" action=\"question.php\">
+            <input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\"/>
             <input type=\"hidden\" name=\"id\" value=\"$question->id\"/>
             <input type=\"hidden\" name=\"editdatasets\" value=\"1\"/>";
         print_table($table);