From 91589cb0f0b88de1621393fa94c637072f8e8fcd Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 22 Aug 2005 02:13:19 +0000 Subject: [PATCH] r360: Delete bugs when you delete products and versions --- admin/product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/product.php b/admin/product.php index 5368b38..75dc80b 100755 --- a/admin/product.php +++ b/admin/product.php @@ -65,7 +65,7 @@ if (empty($_REQUEST['do'])) if ($_REQUEST['do'] == 'killversion') { $db->query("DELETE FROM " . TABLE_PREFIX . "version WHERE versionid = " . intval($bugsys->in['versionid'])); - // #*# figure out what we do with bugs + $db->query("DELETE FROM " . TABLE_PREFIX . "bug WHERE versionid = " . intval($bugsys->in['versionid'])); build_versions(); @@ -172,7 +172,7 @@ if ($_REQUEST['do'] == 'killproduct') $db->query("DELETE FROM " . TABLE_PREFIX . "product WHERE productid IN (" . implode(', ', $list) . ")"); $db->query("DELETE FROM " . TABLE_PREFIX . "version WHERE productid IN (" . implode(', ', $list) . ")"); - // #*# do bug kills here + $db->query("DELETE FROM " . TABLE_PREFIX . "bug WHERE productid IN (" . implode(', ', $list) . ")"); build_products(); -- 2.43.5