Commit a8ae1c34 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 526146: Use remove_from_db to delete keywords in editkeywords.cgi

Patch by Frank Becker <Frank@Frank-Becker.de> r=mkanat, a=mkanat
parent 47269232
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment