1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00

up max count of answers by default

This commit is contained in:
Tykayn 2022-03-21 10:30:53 +01:00 committed by tykayn
parent 883bbe7bd5
commit 4a4552e0ed
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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.