From a8ae1c3475cbc1109aeacf4ebeceb5c0d5089211 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 9 Nov 2009 19:51:58 +0000 Subject: Bug 526146: Use remove_from_db to delete keywords in editkeywords.cgi Patch by Frank Becker r=mkanat, a=mkanat --- editkeywords.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editkeywords.cgi') diff --git a/editkeywords.cgi b/editkeywords.cgi index 76bba4817..a9b46fef5 100755 --- a/editkeywords.cgi +++ b/editkeywords.cgi @@ -169,8 +169,7 @@ if ($action eq 'delete') { my $keyword = new Bugzilla::Keyword($key_id) || ThrowCodeError('invalid_keyword_id', { id => $key_id }); - $dbh->do('DELETE FROM keywords WHERE keywordid = ?', undef, $keyword->id); - $dbh->do('DELETE FROM keyworddefs WHERE id = ?', undef, $keyword->id); + $keyword->remove_from_db(); delete_token($token); -- cgit v1.2.1