Closed Bug 171505 Opened 22 years ago Closed 22 years ago

Disabled flags should still be visible in the UI

Categories

(Bugzilla :: Attachments & Requests, defect)

2.17
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: bbaetz, Assigned: myk)

References

Details

Attachments

(1 file, 1 obsolete file)

As (briefly) discussed on IRC, disabled flags should still who in the UI. They shouldn't be addable/requestable/etc, though. This is similar to how disabled products/groups work. Note that they will still be findable in queries, so having them shown in the UI is less confusing, anyway, as well as being useful for historical purposes. If someone truly does't want them shown, then they should be deleted - currently there is no noticable difference between inactive and deleted (except for the search thing)
Blocks: rt-clean-up
Attached patch patch v1: fixes problem (obsolete) (deleted) — Splinter Review
Here's the fix for this problem. I also moved the "show attachment flags or not" logic out of the template and into the Perl code so if the logic changes in the future we don't have to modify the "display" template to match it. Note that the fix for bug 174731 is in this patch, as well as an indenting correction in attachment.cgi.
After applying this patch (and unrotting it, correctly I think) then disabled flags continue to appear on the Edit Attachment screen - but they are still editable. :-| Gerv
Attached patch patch v2: unrotted + can't edit (deleted) — Splinter Review
Ok this patch is unrotted and prevents you from editing the attachment (except to unset it).
Attachment #104766 - Attachment is obsolete: true
Comment on attachment 105663 [details] [diff] [review] patch v2: unrotted + can't edit + $vars->{'show_attachment_flags'} + = $num_attachment_flag_types + $num_attachment_flags; Use ||, not + r=bbaetz, although thre are too many combinations to test reliably. If it breaks, bmo will let us know in a few hours ;)
Attachment #105663 - Flags: review+
a= justdave
Checking in bug_form.pl; /cvsroot/mozilla/webtools/bugzilla/bug_form.pl,v <-- bug_form.pl new revision: 1.109; previous revision: 1.108 done Checking in attachment.cgi; /cvsroot/mozilla/webtools/bugzilla/attachment.cgi,v <-- attachment.cgi new revision: 1.30; previous revision: 1.29 done Checking in template/en/default/attachment/list.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/list.html.tmpl,v <-- list.html.tmpl new revision: 1.7; previous revision: 1.6 done Checking in template/en/default/flag/list.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/flag/list.html.tmpl,v <-- list.html.tmpl new revision: 1.3; previous revision: 1.2 done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
fixing milestone
Target Milestone: --- → Bugzilla 2.18
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: