summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-11-20 08:35:53 +0100
committerbbaetz%student.usyd.edu.au <>2002-11-20 08:35:53 +0100
commitc42a344256b6f57a156a63be6de31d47a6a23c49 (patch)
tree71dbba2748ed8dcb347f0083a95caf3b2070e3fb /post_bug.cgi
parentc7bc7a8e595ea57dda4de640a9c812e2c8253bce (diff)
downloadbugzilla-c42a344256b6f57a156a63be6de31d47a6a23c49.tar.gz
bugzilla-c42a344256b6f57a156a63be6de31d47a6a23c49.tar.xz
Bug 180978 - Adding keyword from enter_bug doesn't update keyword cache
r=myk, a=justdave
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi12
1 files changed, 12 insertions, 0 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 4f4063f04..60bfa0522 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -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";