aboutsummaryrefslogtreecommitdiffstats
path: root/editkeywords.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-09 19:51:58 +0000
committermkanat%bugzilla.org <>2009-11-09 19:51:58 +0000
commita8ae1c3475cbc1109aeacf4ebeceb5c0d5089211 (patch)
tree28d9a4d9eabc640e484008a07e7db1fcae056eda /editkeywords.cgi
parent4726923228d810ea0cd1800b17a9244c6f0d8eef (diff)
downloadbugs-a8ae1c3475cbc1109aeacf4ebeceb5c0d5089211.tar
bugs-a8ae1c3475cbc1109aeacf4ebeceb5c0d5089211.tar.gz
bugs-a8ae1c3475cbc1109aeacf4ebeceb5c0d5089211.tar.bz2
bugs-a8ae1c3475cbc1109aeacf4ebeceb5c0d5089211.tar.xz
bugs-a8ae1c3475cbc1109aeacf4ebeceb5c0d5089211.zip
Bug 526146: Use remove_from_db to delete keywords in editkeywords.cgi
Patch by Frank Becker <Frank@Frank-Becker.de> r=mkanat, a=mkanat
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);