Closed Bug 278717 Opened 20 years ago Closed 19 years ago

Can't create "create bug" template with multiple CCs if you use usemenuforusers

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

2.18
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: john, Assigned: Wurblzap)

References

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041110 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041110 Firefox/1.0

Due to the checkin of the patch for bug 255428 you can no longer create a
bookmarkable "create bug" template with more than one CC entry if you set the
"usemenuforusers" param to "on".

This is because the combination of enter_bug.cgi and userselect.html.tmpl don't
allow for multiple initial selections in the CC multiselect.


Reproducible: Always

Steps to Reproduce:
1. Ensure you're using an installation of Bugzilla with the "usermenuforusers"
param set to "on".
2. Go to the create bug page, select more than one CC person and click "Remeber
values as bookmarkable template".
3. Click the link gets generated.

Actual Results:  
The create bug page generated by step 3 does not have all of the users you
selected in the CC box in step 2 selected. Only the first selected user is.


Expected Results:  
The create bug page generated by step 3 should have all the users you selected
for CC in step 2 selected.
Do you mean the CC entry or the Add to CC entry?

I think the CC entry list remained unaffected.
Summary: Can't create create bug template with multiple CCs if you use usemenuforusers → Can't create create bug template with multiple CCs if you use usemenuforusers
I mean the "CC:" field in enter_bug.cgi

I've been looking at the problem but can't see how you're meant to get a
multivalue form entry into a template.
Summary: Can't create create bug template with multiple CCs if you use usemenuforusers → Can't create "create bug" template with multiple CCs if you use usemenuforusers
What I have determined is that the "value" input parameter to
global/userselect.html.tmpl is either going to need to be changed to be an
array(ref) or a new input parameter will need to be added.
To try to clarify further, what I mean is that enter_bug.cgi will create a
"bookmarkable template" of the form:

enter_bug.cgi?product=...&...&cc=user1&cc=user2&...

However, enter_bug.cgi doesn't handle 'cc' having more than one value, and even
if it did, userselect.html.tmpl doesn't handle selecting more than one entry in
a multiselect box.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch Patch (obsolete) — Splinter Review
Coping with user lists, using pattern matching.
Assignee: myk → wurblzap
Status: NEW → ASSIGNED
Attachment #171762 - Flags: review?
Severity: normal → minor
OS: Windows XP → All
Hardware: PC → All
Works well on my installation.

You've done it a way I'd considered but not yet attempted. Quite a tidy way to
do it, it turns out.
Whiteboard: patch awaiting review
Comment on attachment 171762 [details] [diff] [review]
Patch

This patch has bitrotted, but when I unrotted it, I couldn't get it to work for
me.  I probably was doing something wrong, though.  Can you post an updated
patch?
Attachment #171762 - Flags: review? → review-
Attached patch UnrottedSplinter Review
Attachment #171762 - Attachment is obsolete: true
Attachment #177486 - Flags: review?(myk)
Attached patch Updated patch (obsolete) — Splinter Review
How about this. It's untested as I haven't got a tip installation of Bugzilla
at the moment.
Woah, you wait ages for a patch and then 2 come along... :)
Attachment #177487 - Attachment is obsolete: true
Attachment #177486 - Flags: review?(myk) → review+
Flags: approval+
Whiteboard: patch awaiting review → patch awaiting checkin
Checking in enter_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/enter_bug.cgi,v  <--  enter_bug.cgi
new revision: 1.112; previous revision: 1.111
done
Checking in template/en/default/global/userselect.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/userselect.html.tmpl,v
 <--  userselect.html.tmpl
new revision: 1.5; previous revision: 1.4
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 2.20
Whiteboard: patch awaiting checkin
Blocks: 430307
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: