- Timestamp:
- 04/20/09 03:24:26 (15 years ago)
- Location:
- trunk/lib/Vote/Controller
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Admin.pm
r217 r221 74 74 map { $_ => ($c->req->param($_) || undef) } 75 75 grep { exists($c->req->params->{$_}) } 76 qw(label description start end choice_count free_choice elected_count )76 qw(label description start end choice_count free_choice elected_count elected_choice) 77 77 ) and $poll->commit; 78 78 } elsif ($c->req->param('encrypted')) { -
trunk/lib/Vote/Controller/Ballot.pm
r219 r221 84 84 lc($_) 85 85 } ($c->req->param('fsbal')) ]; 86 $c->stash->{esbal} = [ grep { $_ } $c->req->param('esbal') ]; 87 86 88 $c->request->parameters->{fsbal} = $c->stash->{fsbal}; 87 89 88 90 my @sbalval = grep { $_ } map { lc($choices{$_} || '') } $c->req->param('sbal'); 89 91 90 my @ballot = grep { $_ } (@sbalval, @{$c->stash->{fsbal} || []}); 92 my @ballot = grep { $_ } ( 93 @sbalval, 94 @{$c->stash->{fsbal} || []}, 95 @{$c->stash->{esbal} || []}, 96 ); 91 97 if (scalar(@ballot) > $poll->info('choice_count')) { 92 98 $c->req->parameters->{'ballot'} = '';
Note: See TracChangeset
for help on using the changeset viewer.