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.