mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Putting the "Save as new question" button back.
This commit is contained in:
parent
6dfc23760f
commit
76de2cdf1a
@ -274,6 +274,11 @@
|
||||
} else {
|
||||
// use the old code which simply overwrites old versions
|
||||
// it is also used for creating new questions
|
||||
|
||||
if (isset($form->makecopy)) {
|
||||
$question->hidden = 0; // explicitly requested copies should be unhidden
|
||||
$question->id = 0; // This will prompt save_question to create a new question
|
||||
}
|
||||
$question = $QTYPES[$qtype]->save_question($question, $form, $course);
|
||||
$replaceinquiz = 'all';
|
||||
}
|
||||
|
@ -966,8 +966,7 @@ class default_questiontype {
|
||||
<td colspan="2" align="center">
|
||||
<input type="submit" '.$submitscript.' value="'.get_string('savechanges').'" /> ';
|
||||
if ($question->id) {
|
||||
// Switched off until bug 3445 is fixed
|
||||
// echo '<input type="submit" name="makecopy" '.$submitscript.' value="'.get_string("makecopy", "quiz").'" /> ';
|
||||
echo '<input type="submit" name="makecopy" '.$submitscript.' value="'.get_string("makecopy", "quiz").'" /> ';
|
||||
}
|
||||
echo '<input type="submit" name="cancel" value="'.get_string("cancel").'" />
|
||||
<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user