mirror of
https://github.com/moodle/moodle.git
synced 2025-01-20 15:08:32 +01:00
Solved sesskey issue in calculated questions. Bug 2464
(http://moodle.org/bugs/bug.php?op=show&bugid=2464)
This commit is contained in:
parent
489de4ae13
commit
2d81101163
@ -252,6 +252,7 @@
|
||||
$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\"/>";
|
||||
@ -261,6 +262,7 @@
|
||||
// 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user