summaryrefslogtreecommitdiffstats
path: root/editkeywords.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editkeywords.cgi')
-rwxr-xr-xeditkeywords.cgi3
1 files changed, 1 insertions, 2 deletions
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);