diff options
author | Joas Schilling <coding@schilljs.com> | 2022-05-31 14:52:30 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-06-13 12:52:59 +0200 |
commit | e850664c9aa5532e948ae3399a2a26effde0e09d (patch) | |
tree | 52a0ef6051655ef1fd3184aaaec3aef89010e422 /lib/Controller/PollController.php | |
parent | 864422eb96cd260563c74901188bee116fe37c0e (diff) |
Save number of actors that voted
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PollController.php')
-rw-r--r-- | lib/Controller/PollController.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Controller/PollController.php b/lib/Controller/PollController.php index 72b34a902..759a92aa7 100644 --- a/lib/Controller/PollController.php +++ b/lib/Controller/PollController.php @@ -198,6 +198,7 @@ class PollController extends AEnvironmentAwareController { if ($poll->getResultMode() === Poll::MODE_HIDDEN && $poll->getStatus() === Poll::STATUS_OPEN) { $data['votes'] = []; + $data['numVoters'] = 0; } elseif (!empty($detailedVotes)) { $data['details'] = array_map(static fn (Vote $vote) => $vote->asArray(), $detailedVotes); } |