all tracking flags are visible on the 'change many bugs at once' page

RESOLVED FIXED

Status

()

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: glob, Assigned: dkl)

Tracking

Production
x86
Mac OS X

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
all tracking flags are visible on the 'change many bugs at once' page, and we have a few :)
(Assignee)

Comment 1

5 years ago
Created attachment 817418 [details] [diff] [review]
926962_1.patch

I seem to remember this being the case before when we were using custom fields instead as well so not a regression. I would need to look back at the old tracking flag code to compare. 

Upstream and our template code both just display all active_custom_field with no product/component filtering when viewing the edit mulptiple form.

This patch will filter the flags down based on product if only one product is present in the bug results (one_product). Otherwise if multiple products are returned we fall back to old behavior. Bugzilla::active_custom_fields does not yet support multiple products for filtering, but if it did we could extend this to the edit multiple form as well which would still decrease the list of flags significantly.

dkl
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Attachment #817418 - Flags: review?(glob)
(Reporter)

Comment 2

5 years ago
Comment on attachment 817418 [details] [diff] [review]
926962_1.patch

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

r=glob
Attachment #817418 - Flags: review?(glob) → review+
(Assignee)

Comment 3

5 years ago
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bmo/4.2
modified template/en/default/list/edit-multiple.html.tmpl
Committed revision 9258
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.