User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:22.214.171.124) 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
Target Milestone: --- → Bugzilla 3.6
Version: unspecified → 3.6
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)
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://firstname.lastname@example.org/bugzilla/trunk/ modified template/en/default/admin/table.html.tmpl Committed revision 7544. Committing to: bzr+ssh://email@example.com/bugzilla/4.0/ modified template/en/default/admin/table.html.tmpl Committed revision 7442. Committing to: bzr+ssh://firstname.lastname@example.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.