From 4a4552e0ed8c194d79569980ac41913c14b9a74c Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 21 Mar 2022 10:30:53 +0100 Subject: [PATCH] up max count of answers by default --- src/Controller/api/v1/PollController.php | 2 +- src/Entity/Poll.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/api/v1/PollController.php b/src/Controller/api/v1/PollController.php index 3f1732b..22eb321 100755 --- a/src/Controller/api/v1/PollController.php +++ b/src/Controller/api/v1/PollController.php @@ -371,7 +371,7 @@ class PollController extends EmailsController $newpoll->setHideResults($data['hideResults']); // possible answers $newpoll->setAllowedAnswers($data['allowed_answers']); - $newpoll->setVotesMax($data['maxCountOfAnswers']); + $newpoll->setVotesMax($data['maxCountOfAnswers'] || 1024*10); $newpoll->setCommentsAllowed($data['allowComments']); // setup the password, converting the raw with md5 hash diff --git a/src/Entity/Poll.php b/src/Entity/Poll.php index 6cf7f41..db3c945 100755 --- a/src/Entity/Poll.php +++ b/src/Entity/Poll.php @@ -102,7 +102,7 @@ class Poll * @Serializer\Type("smallint") * @Serializer\Expose() */ - public $votesMax = 1024; + public $votesMax = 1024*10; /** * max number of choices people can answer in a stack of vote. for text polls only, not date kind.