зеркало из https://github.com/mozilla/gecko-dev.git
Bug 180978 - Adding keyword from enter_bug doesn't update keyword cache
r=myk, a=justdave
This commit is contained in:
Родитель
979c5345e5
Коммит
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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче