diff options
author | mkanat%bugzilla.org <> | 2009-11-09 20:51:58 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-11-09 20:51:58 +0100 |
commit | a8ae1c3475cbc1109aeacf4ebeceb5c0d5089211 (patch) | |
tree | 28d9a4d9eabc640e484008a07e7db1fcae056eda | |
parent | 4726923228d810ea0cd1800b17a9244c6f0d8eef (diff) | |
download | bugzilla-a8ae1c3475cbc1109aeacf4ebeceb5c0d5089211.tar.gz bugzilla-a8ae1c3475cbc1109aeacf4ebeceb5c0d5089211.tar.xz |
Bug 526146: Use remove_from_db to delete keywords in editkeywords.cgi
Patch by Frank Becker <Frank@Frank-Becker.de> r=mkanat, a=mkanat
-rwxr-xr-x | editkeywords.cgi | 3 |
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); |