diff --git a/main/exercice/admin.php b/main/exercice/admin.php index 709c915f6f..f79b806984 100644 --- a/main/exercice/admin.php +++ b/main/exercice/admin.php @@ -255,6 +255,10 @@ if (isset($clone_question) && !empty($objExercise->id)) { $new_answer_obj = new Answer($clone_question); $new_answer_obj->read(); $new_answer_obj->duplicate($new_id); + + //Reloading tne $objExercise obj + $objExercise->read($objExercise->id); + header('Location: admin.php?'.api_get_cidreq().'&exerciseId='.$objExercise->id); exit; } @@ -474,7 +478,7 @@ if ($inATest) { $oQ = Question::read($q); $maxScoreAllQuestions += $oQ->selectWeighting(); } - echo ''.sprintf(get_lang('XQuestionsWithTotalScoreY'),$objExercise->selectNbrQuestions(),$maxScoreAllQuestions).''; + echo ''.sprintf(get_lang('XQuestionsWithTotalScoreY'), $objExercise->selectNbrQuestions(),$maxScoreAllQuestions).''; echo ''; } else if (isset($_GET['newQuestion'])) { // we are in create a new question from question pool not in a test