Clear external product references when deleting product

beta
Vitaliy Filippov 2018-12-21 18:37:38 +03:00
parent d3257ad482
commit 02e716777f
1 changed files with 3 additions and 0 deletions

View File

@ -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();