Closed Bug 604107 Opened 14 years ago Closed 14 years ago

The link to delete the value 0 of custom fields is broken

Categories

(Bugzilla :: Administration, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: rob.elves, Assigned: LpSolit)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
Build Identifier: 3.6.2

Create a custom Drop Down field with a value of 0 and try to delete it. You are presented with a "You must select/enter a..." error.  Also, once a bug has 0 set for this custom field, the attribute is no longer present in the ctype=xml output.  

Reproducible: Always

Steps to Reproduce:
1.Create custom Drop Down, add 0 as an option
2.Try to delete this new option value (fails)
3.Select this '0' custom field value on a bug, note that the attribute is no longer present in the xml output


Expected Results:  
attribute should be included in the xml and have the 0 value
Flags: blocking3.6.3+
Target Milestone: --- → Bugzilla 3.6
Version: unspecified → 3.6
Attached patch patch, v1Splinter Review
You are exposing two separate issues. The deletion problem is Bugzilla bug, which this patch is about. The XML problem is a Template-Toolkit bug, which is WONTFIX per https://rt.cpan.org/Public/Bug/Display.html?id=9802.

So let's keep the TT issue for a separate bug.
Assignee: create-and-change → LpSolit
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #483361 - Flags: review?(mkanat)
Attachment #483361 - Flags: review?(mkanat) → review+
Flags: approval4.0+
Flags: approval3.6+
Flags: approval+
Component: Creating/Changing Bugs → Administration
Summary: custom fields of type Drop Down with value of 0 not exposed in xml and deletion in web ui fails → The link to delete the value 0 of custom fields is broken
Robert, could you file a separate bug about the TT issue in the XML template, please?

Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified template/en/default/admin/table.html.tmpl
Committed revision 7544.

Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.0/
modified template/en/default/admin/table.html.tmpl
Committed revision 7442.

Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/3.6/
modified template/en/default/admin/table.html.tmpl
Committed revision 7189.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: