Changeset 99


Ignore:
Timestamp:
03/24/09 12:40:17 (15 years ago)
Author:
nanardon
Message:
  • change also ballot_item having a remap value equal to one we want to remap
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Vote/Model/Vote.pm

    r98 r99  
    723723        update ballot_item set corrected = ? where 
    724724        id in (select id from ballot where poll = ?) 
    725         and value = ? 
    726         } 
    727     ); 
    728  
    729     $sth->execute($to, $voteid, $from) or $self->db->rollback; 
     725        and (value = ? or corrected = ?) 
     726        } 
     727    ); 
     728 
     729    $sth->execute($to, $voteid, $from, $from) or $self->db->rollback; 
    730730    $self->db->commit; 
    731731} 
Note: See TracChangeset for help on using the changeset viewer.