Revision 427

Date:
2014/03/07 14:24:32
Author:
ahitrov
Revision Log:
post_delete bug

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/webshop/lib/webshop/Discount.pm

     
    179 179 {
    180 180 my $self = shift;
    181 181
    182 $sql = $self->keeper->SQL->prepare('DELETE FROM webshop_coupon_links where source_id = ?');
    182 my $sql = $self->keeper->SQL->prepare('DELETE FROM webshop_coupon_links where source_id = ?');
    183 183 $sql->execute( $self->id );
    184 $sql = $self->keeper->SQL->prepare('DELETE FROM webshop_order_coupons where dest_id = ?');
    185 $sql->execute( $self->id );
    186 184
    187 185 1;
    188 186 }