Separate survey list controls from editor view
This commit is contained in:
@@ -52,10 +52,6 @@ final class SurveyEditorService
|
||||
|
||||
public function toggleSurveyActive(SurveyModel $survey, int $memberId): bool
|
||||
{
|
||||
if ('1' !== (string) $survey->published) {
|
||||
throw new \RuntimeException('Die Umfrage muss zuerst veröffentlicht werden.');
|
||||
}
|
||||
|
||||
$isActive = '1' !== (string) ($survey->isActive ?? '');
|
||||
$this->surveyRepository->setActive((int) $survey->id, $memberId, $isActive);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user