Closed
Bug 348542
Opened 18 years ago
Closed 18 years ago
Move keyword validation out of post_bug.cgi and into Bugzilla::Bug
Categories
(Bugzilla :: Creating/Changing Bugs, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file)
2.71 KB,
patch
|
bugzilla-mozilla
:
review+
|
Details | Diff | Splinter Review |
This is yet another step for bug 305136. The code that validates keywords is in post_bug.cgi, and should be moved into Bugzilla::Bug.
Assignee | ||
Comment 1•18 years ago
|
||
Yet another! :-) This one depends on the CC patch, but only because of the code around it. (The patch won't apply otherwise.)
Assignee: create-and-change → mkanat
Status: NEW → ASSIGNED
Attachment #233490 -
Flags: review?(bugzilla-mozilla)
Comment 2•18 years ago
|
||
Comment on attachment 233490 [details] [diff] [review] v1 >diff -u post_bug.cgi post_bug.cgi >@@ -437,12 +416,12 @@ > my $sth_addkeyword = $dbh->prepare(q{ > INSERT INTO keywords (bug_id, keywordid) VALUES (?, ?)}); > if (UserInGroup("editbugs")) { >- foreach my $keyword (@keywordlist) { >+ foreach my $keyword (@keyword_ids) { > $sth_addkeyword->execute($id, $keyword); > } >- if (@keywordlist) { >+ if (@keyword_ids) { > # Make sure that we have the correct case for the kw >- my $kw_ids = join(', ', @keywordlist); >+ my $kw_ids = join(', ', @keyword_ids); > my $list = $dbh->selectcol_arrayref(qq{ > SELECT name > FROM keyworddefs Nit/extra points: Just below here it updates bugs and sets delta_ts again to $timestamp. That not needed anymore and can be removed. r=bkor.
Attachment #233490 -
Flags: review?(bugzilla-mozilla) → review+
Updated•18 years ago
|
Flags: approval?
Updated•18 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 3•18 years ago
|
||
I didn't change the delta_ts stuff, because post_bug works in mysterious ways and I don't necessarily want to mess with things. It will all get messed with soon enough anyway, when everything gets moved into Bugzilla::Bug. Checking in post_bug.cgi; /cvsroot/mozilla/webtools/bugzilla/post_bug.cgi,v <-- post_bug.cgi new revision: 1.165; previous revision: 1.164 done Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.139; previous revision: 1.138 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•