diff --git a/Modules/Survey/Editing/class.ilSurveyEditorGUI.php b/Modules/Survey/Editing/class.ilSurveyEditorGUI.php index 76085d3f9efd..55b6f893b6d4 100644 --- a/Modules/Survey/Editing/class.ilSurveyEditorGUI.php +++ b/Modules/Survey/Editing/class.ilSurveyEditorGUI.php @@ -436,7 +436,7 @@ protected function insertQuestions( $this->tpl->setOnScreenMessage('info', $this->lng->txt("no_target_selected_for_move"), true); } else { $this->tpl->setOnScreenMessage('success', $this->lng->txt('msg_obj_modified'), true); - if ($this->edit_manager->getMoveSurveyId() !== $this->object->getId()) { + if ($this->edit_manager->getMoveSurveyId() === $this->object->getId()) { $this->object->moveQuestions( $this->edit_manager->getMoveSurveyQuestions(), $insert_id, diff --git a/Modules/Survey/Page/class.ilSurveyPageEditGUI.php b/Modules/Survey/Page/class.ilSurveyPageEditGUI.php index 603f2b10d8c4..a10db2c6cd4b 100644 --- a/Modules/Survey/Page/class.ilSurveyPageEditGUI.php +++ b/Modules/Survey/Page/class.ilSurveyPageEditGUI.php @@ -207,7 +207,6 @@ protected function appendNewQuestionToSurvey( bool $a_force_duplicate = false ): int { $ilDB = $this->db; - $this->log->debug("append question, id: " . $a_new_id . ", duplicate: " . $a_duplicate . ", force: " . $a_force_duplicate); // get maximum sequence index in test @@ -232,7 +231,6 @@ protected function appendNewQuestionToSurvey( if ($this->object->isQuestionInSurvey($survey_question_id)) { return $survey_question_id; } - // append to survey $next_id = $ilDB->nextId('svy_svy_qst'); $affectedRows = $ilDB->manipulateF( @@ -630,7 +628,6 @@ protected function paste(int $a_id): void foreach ($nodes as $qid) { // create new questions $question = ilObjSurvey::_instanciateQuestion($qid); - // handle exisiting copies $title = $question->getTitle(); $max = 0;