Add survey duplication actions
This commit is contained in:
@@ -90,6 +90,11 @@ final class MemberSurveyListController extends AbstractFrontendModuleController
|
||||
$survey = $this->resolveEditableSurvey($surveyId, $memberId);
|
||||
|
||||
try {
|
||||
if ('duplicate-survey' === $action) {
|
||||
$duplicate = $this->surveyEditorService->duplicateSurvey($survey, $memberId);
|
||||
$this->addFlash('success', sprintf('Die Umfrage "%s" wurde als Kopie angelegt.', (string) $duplicate->title));
|
||||
}
|
||||
|
||||
if ('publish-survey' === $action) {
|
||||
$this->surveyEditorService->publishSurvey($survey, $memberId);
|
||||
$this->addFlash('success', 'Die Umfrage ist jetzt veröffentlicht.');
|
||||
|
||||
Reference in New Issue
Block a user