Browse Source

up max count of answers by default

master
Tykayn 4 months ago committed by tykayn
parent
commit
4a4552e0ed
  1. 2
      src/Controller/api/v1/PollController.php
  2. 2
      src/Entity/Poll.php

2
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

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

Loading…
Cancel
Save