aboutsummaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi14
1 files changed, 5 insertions, 9 deletions
diff --git a/editproducts.cgi b/editproducts.cgi
index f5486f37b..73fdbf487 100755
--- a/editproducts.cgi
+++ b/editproducts.cgi
@@ -599,15 +599,11 @@ if ($action eq 'delete') {
while (MoreSQLData()) {
my $bugid = FetchOneColumn();
- my $query =
- $::db->do("DELETE FROM attachments WHERE bug_id=$bugid")
- or die "$::db_errstr";
- $query =
- $::db->do("DELETE FROM bugs_activity WHERE bug_id=$bugid")
- or die "$::db_errstr";
- $query =
- $::db->do("DELETE FROM dependencies WHERE blocked=$bugid")
- or die "$::db_errstr";
+ PushGlobalSQLState();
+ SendSQL("DELETE FROM attachments WHERE bug_id=$bugid");
+ SendSQL("DELETE FROM bugs_activity WHERE bug_id=$bugid");
+ SendSQL("DELETE FROM dependencies WHERE blocked=$bugid");
+ PopGlobalSQLState();
}
print "Attachments, bug activity and dependencies deleted.<BR>\n";