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:
parent
883bbe7bd5
commit
4a4552e0ed
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user