Closed Bug 1129101 Opened 9 years ago Closed 9 years ago

Custom integer field breaks "Change many bugs at once" functionality

Categories

(bugzilla.mozilla.org :: General, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dveditz, Assigned: dkl)

References

Details

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1123769 +++

bug 1123769 added a new "rank" field. When I try to use the "Change several bugs at once" functionality for buglists the rank field defaults to --do_not_change-- (like most fields). But when I submit my changes (to other fields, leaving rank alone) then I get an error box/overlay saying rank is no in the required format.

Can't figure out a way to work around it (especially since I don't think I have permission to be changing the rank field anyway).
This is apparently due to the pattern="\d+" attribute on the field which is enforced by the browser and does not know about the magic --do_not_change-- value. If I use DevTools to remove the attribute the form works fine on the server side.
Attached patch 1129101_1.patch (obsolete) — Splinter Review
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Attachment #8558705 - Flags: review?(glob)
that's upstream code, moving.
Component: General → Creating/Changing Bugs
Product: bugzilla.mozilla.org → Bugzilla
QA Contact: default-qa
Target Milestone: --- → Bugzilla 5.0
Version: Production → 5.0
(In reply to Daniel Veditz [:dveditz] from comment #0)
> Can't figure out a way to work around it (especially since I don't think I
> have permission to be changing the rank field anyway).

fwiw you do have permission to set that field.
Flags: blocking5.0+
Summary: New "rank" field breaks "Change many bugs at once" functionality → Custom integer field breaks "Change many bugs at once" functionality
Comment on attachment 8558705 [details] [diff] [review]
1129101_1.patch

Review of attachment 8558705 [details] [diff] [review]:
-----------------------------------------------------------------

this looks good for bmo, we'll need a patch for trunk since i moved the goalposts.
Attachment #8558705 - Flags: review?(glob) → review-
Upstream already has this fixed so moving back to BMO to backport the fix instead.
Component: Creating/Changing Bugs → General
Flags: blocking5.0+
OS: Mac OS X → All
Product: Bugzilla → bugzilla.mozilla.org
QA Contact: default-qa
Hardware: x86 → All
Target Milestone: Bugzilla 5.0 → ---
Version: 5.0 → Production
Attached patch 1129101_2.patchSplinter Review
Attachment #8558705 - Attachment is obsolete: true
Attachment #8559198 - Flags: review?(glob)
Comment on attachment 8559198 [details] [diff] [review]
1129101_2.patch

Review of attachment 8559198 [details] [diff] [review]:
-----------------------------------------------------------------

r=glob
Attachment #8559198 - Flags: review?(glob) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   bb4b3f6..7732e14  master -> master
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Thanks for the fix.

(In reply to Byron Jones ‹:glob› from comment #4)
> (In reply to Daniel Veditz [:dveditz] from comment #0)
> > Can't figure out a way to work around it (especially since I don't think I
> > have permission to be changing the rank field anyway).
> 
> fwiw you do have permission to set that field.

True, but randomly re-setting bug rank just to make the form work probably won't win me any friends :-)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: