We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37c743a + 35583cf commit dd497c0Copy full SHA for dd497c0
1 file changed
Sources/Poll.php
@@ -1059,15 +1059,11 @@ protected function initNewPoll(): void
1059
'guest_vote' => !empty($_POST['poll_guest_vote']),
1060
]);
1061
1062
- // Make all five poll choices empty.
1063
- Utils::$context['last_choice_id'] = 4;
1064
-
1065
- for ($i = 0; $i <= Utils::$context['last_choice_id']; $i++) {
+ for ($i = 0; $i <= 4; $i++) {
1066
$this->addChoice([
1067
'id' => $i,
1068
'number' => $i + 1,
1069
'label' => '',
1070
- 'is_last' => $i === Utils::$context['last_choice_id'],
1071
], true);
1072
}
1073
0 commit comments