Closed Bug 353528 Opened 20 years ago Closed 19 years ago

<select> fields with just one value shouldn't appear editable

Categories

(Bugzilla :: User Interface, enhancement)

2.20.1
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: timeless, Assigned: reed)

References

()

Details

(Keywords: ue)

Attachments

(2 files, 1 obsolete file)

steps: 1. find a product that has only 1 version and only 1 tm, Websites works on bmo 2. find any bug in that product, e.g. bug 13146 compare: bgo 356938 <http://bugzilla.gnome.org/show_bug.cgi?id=356938> expected results: consider not using any tags and instead just inline the value (in a span). whether there should be a style (inset border or similar) is subject to negotiation. note: this should be done globally for whatever generator we have so that you avoid the error that the gnome team created which can be seen in bgo 356938 <http://bugzilla.gnome.org/show_bug.cgi?id=356938> where target milestone has no select, but version does. at this time, there's only one version (unspecified) and one target milestone (---).
Attached file view of gnome bug —
for reference, there are actually tms, but only special people can see them, so i misinterpretted why i got the read only field. i'd rather assume my explanation than theres, as theirs is completely unintuitive.
OS: SunOS → All
Hardware: PC → All
Summary: Consider removing <select> tags from options containing just one value → <select> fields with just one value shouldn't appear editable
Keywords: ue
Fixed on prodpatches for bmo upgrade. I'll attach a patch soon.
Attached patch patch - v1 (obsolete) — — Splinter Review
Add the "disabled" param to the <select> tag when there is only one option.
Assignee: ui → reed
Status: NEW → ASSIGNED
Attachment #249658 - Flags: review?(bugzilla-mozilla)
Target Milestone: --- → Bugzilla 3.0
Comment on attachment 249658 [details] [diff] [review] patch - v1 Disabled fields are not passed to the CGI script, and process_bug.cgi will complain that some parameters are missing.
Attachment #249658 - Flags: review?(bugzilla-mozilla) → review-
Attached patch patch - v2 — — Splinter Review
Oops, I didn't know disabled <select> elements were not passed back to the CGI script. Thanks for catching that! :)
Attachment #249658 - Attachment is obsolete: true
Attachment #249660 - Flags: review?(LpSolit)
Comment on attachment 249660 [details] [diff] [review] patch - v2 r=LpSolit
Attachment #249660 - Flags: review?(LpSolit) → review+
Flags: approval?
Flags: approval? → approval+
Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.96; previous revision: 1.95 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: