- Timestamp:
- 03/19/09 13:32:53 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Ballot.pm
r53 r82 80 80 lc($_) 81 81 } ($c->req->param('fsbal')) ]; 82 $c->request->parameters->{fsbal} = $c->stash->{fsbal}; 82 83 83 84 my @sbalval = grep { $_ } map { $choices{$_} } $c->req->param('sbal'); … … 85 86 if (scalar(@sbalval) + scalar(@{$c->stash->{fsbal} || []}) 86 87 > $vote->vote_info($id)->{choice_count}) { 87 $c->req->param ('ballot', '');88 $c->req->parameters->{'ballot'} = ''; 88 89 $c->stash->{vote_error} = 'Seulement ' . 89 90 $vote->vote_info($id)->{choice_count} . ' choix possible'; … … 94 95 $uniq{lc($_)} = 1 foreach(@sbalval, @{$c->stash->{fsbal} || []}); 95 96 if (scalar(keys %uniq) != scalar(@sbalval) + scalar(@{$c->stash->{fsbal} || []})) { 96 $c->req->param ('ballot', '');97 $c->req->parameters->{'ballot'} = ''; 97 98 $c->stash->{vote_error} = 'Une valeur est en double'; 98 99 return;
Note: See TracChangeset
for help on using the changeset viewer.