Bug 180978 - Adding keyword from enter_bug doesn't update keyword cache

r=myk, a=justdave
This commit is contained in:
bbaetz%student.usyd.edu.au 2002-11-19 23:35:53 +00:00
Родитель 979c5345e5
Коммит 612ad473bb
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -409,6 +409,18 @@ if (UserInGroup("editbugs")) {
SendSQL("INSERT INTO keywords (bug_id, keywordid) SendSQL("INSERT INTO keywords (bug_id, keywordid)
VALUES ($id, $keyword)"); 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'}) { if (defined $::FORM{'dependson'}) {
my $me = "blocked"; my $me = "blocked";
my $target = "dependson"; my $target = "dependson";