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

RESOLVED FIXED in Bugzilla 3.6

Status

()

Bugzilla
Administration
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: Robert Elves, Assigned: Frédéric Buclin)

Tracking

Bugzilla 3.6
Bug Flags:
approval +
approval4.0 +
approval3.6 +
blocking3.6.3 +

Details

Attachments

(1 attachment)

795 bytes, patch
Max Kanat-Alexander
: review+
Details | Diff | Splinter Review
(Reporter)

Description

8 years ago
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

Updated

8 years ago
Flags: blocking3.6.3+
Target Milestone: --- → Bugzilla 3.6
Version: unspecified → 3.6
(Assignee)

Comment 1

8 years ago
Created attachment 483361 [details] [diff] [review]
patch, v1

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)

Updated

8 years ago
Attachment #483361 - Flags: review?(mkanat) → review+

Updated

8 years ago
Flags: approval4.0+
Flags: approval3.6+
Flags: approval+
(Assignee)

Updated

8 years ago
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
(Assignee)

Comment 2

8 years ago
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
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.