- Timestamp:
- 03/16/09 23:01:09 (15 years ago)
- Location:
- trunk/lib/Vote
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Admin.pm
r42 r43 71 71 } 72 72 } elsif ($vote->vote_status($id) eq 'AFTER') { 73 if ($c->req->param('mapfrom') && $c->req->param('mapto')) { 74 $vote->vote_map_value( 75 $id, 76 $c->req->param('mapfrom'), 77 $c->req->param('mapto'), 78 ); 79 } 73 80 foreach my $bid ($vote->list_vote_ballot_needvalid($id)) { 74 81 if (!$c->req->param($bid)) { -
trunk/lib/Vote/Model/Vote.pm
r42 r43 631 631 select value from ballot join ballot_item 632 632 on ballot.id = ballot_item.id 633 where poll = ? and fromlist = false 633 where poll = ? and fromlist = false and corrected is null 634 634 group by value order by value 635 635 } … … 648 648 my $getval = $self->db->prepare_cached( 649 649 q{ 650 select value from ballot join ballot_item650 select coalesce(corrected, value) as value from ballot join ballot_item 651 651 on ballot.id = ballot_item.id 652 652 where poll = ? 653 group by value order by value653 group by coalesce(corrected, value) order by coalesce(corrected, value) 654 654 } 655 655 );
Note: See TracChangeset
for help on using the changeset viewer.