From 76de2cdf1adb8ec1f138000af103e41a6a38efad Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Wed, 22 Mar 2006 22:37:27 +0000 Subject: [PATCH] Putting the "Save as new question" button back. --- question/question.php | 5 +++++ question/questiontypes/questiontype.php | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/question/question.php b/question/question.php index 87e30673a3..63f8fad38e 100644 --- a/question/question.php +++ b/question/question.php @@ -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'; } diff --git a/question/questiontypes/questiontype.php b/question/questiontypes/questiontype.php index d246d0d1d7..a84b45f425 100644 --- a/question/questiontypes/questiontype.php +++ b/question/questiontypes/questiontype.php @@ -966,8 +966,7 @@ class default_questiontype { '; if ($question->id) { -// Switched off until bug 3445 is fixed -// echo ' '; + echo ' '; } echo ' -- 2.39.5