mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 180978 - Adding keyword from enter_bug doesn't update keyword cache
r=myk, a=justdave
This commit is contained in:
parent
979c5345e5
commit
612ad473bb
@ -409,6 +409,18 @@ if (UserInGroup("editbugs")) {
|
||||
SendSQL("INSERT INTO keywords (bug_id, keywordid)
|
||||
VALUES ($id, $keyword)");
|
||||
}
|
||||
if (@keywordlist) {
|
||||
# Make sure that we have the correct case for the kw
|
||||
SendSQL("SELECT name FROM keyworddefs WHERE id IN ( " .
|
||||
join(',', @keywordlist) . ")");
|
||||
my @list;
|
||||
while (MoreSQLData()) {
|
||||
push (@list, FetchOneColumn());
|
||||
}
|
||||
SendSQL("UPDATE bugs SET keywords = " .
|
||||
SqlQuote(join(', ', @list)) .
|
||||
" WHERE bug_id = $id");
|
||||
}
|
||||
if (defined $::FORM{'dependson'}) {
|
||||
my $me = "blocked";
|
||||
my $target = "dependson";
|
||||
|
Loading…
Reference in New Issue
Block a user