Clear external product references when deleting product
parent
d3257ad482
commit
02e716777f
|
@ -502,6 +502,9 @@ sub remove_from_db
|
|||
}
|
||||
}
|
||||
|
||||
# Clear external product reference
|
||||
$dbh->do('UPDATE products SET extproduct=NULL WHERE extproduct=?', undef, $self->id);
|
||||
|
||||
$self->SUPER::remove_from_db();
|
||||
|
||||
$dbh->bz_commit_transaction();
|
||||
|
|
Loading…
Reference in New Issue