Closed
Bug 1162914
Opened 10 years ago
Closed 10 years ago
Editing a user field when confirmuniqueusermatch = true no longer works
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: LpSolit, Assigned: LpSolit)
Details
(Keywords: regression)
Attachments
(1 file)
676 bytes,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
This is a regression in 5.0. It's working fine in 4.4.9. When the confirmuniqueusermatch parameter is set to true, and you type a partial user name in a user field of a bug (either CC list, or assignee/QA contact) and submit changes before waiting for the auto-completion list to appear, you get an intermediate page asking you to confirm the assignee/QA contact/CC'ed user, as expected. But when you click "Continue", nothing happens, the user field is left unchanged. If you turn off this parameter, it works fine.
Flags: blocking5.0?
Updated•10 years ago
|
Flags: blocking5.0? → blocking5.0+
Updated•10 years ago
|
Flags: testcase?
Assignee | ||
Comment 1•10 years ago
|
||
The template was using the 'cgi' variable, but this variable was not defined in this template. The code worked till now because 'cgi' was defined in another template, probably global/header.html.tmpl or some other widely used template, and so this variable was always defined. When doing the move to HTML5, I removed some unused variables which were not used directly in the templates in which they were defined, which triggered this bug. It's a really bad policy to assume that a variable you need is defined elsewhere, unless the INTERFACE says the variable is passed by the caller, and so it's actually a good thing that my cleanup triggered this bug.
Assignee: create-and-change → LpSolit
Status: NEW → ASSIGNED
Attachment #8603480 -
Flags: review?(dkl)
Assignee | ||
Comment 2•10 years ago
|
||
Actually, the "bad" code was inserted by bug 756314 (Bugzilla 4.0). The 'cgi' variable was used, but not defined.
Comment 3•10 years ago
|
||
Comment on attachment 8603480 [details] [diff] [review]
patch, v1
Review of attachment 8603480 [details] [diff] [review]:
-----------------------------------------------------------------
r=dkl
Attachment #8603480 -
Flags: review?(dkl) → review+
Updated•10 years ago
|
Flags: approval?
Flags: approval5.0?
Flags: approval?
Flags: approval5.0?
Flags: approval5.0+
Flags: approval+
Assignee | ||
Comment 4•10 years ago
|
||
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
4779266..ccda2ce master -> master
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
f1b2372..e191f86 5.0 -> 5.0
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•