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)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: bbaetz, Assigned: myk)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
bbaetz
:
review+
bbaetz
:
review+
|
Details | Diff | Splinter Review |
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)
Assignee | ||
Updated•22 years ago
|
Blocks: rt-clean-up
Assignee | ||
Comment 1•22 years ago
|
||
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.
Comment 2•22 years ago
|
||
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
Assignee | ||
Comment 3•22 years ago
|
||
Ok this patch is unrotted and prevents you from editing the attachment (except
to unset it).
Attachment #104766 -
Attachment is obsolete: true
Reporter | ||
Comment 4•22 years ago
|
||
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+
Comment 5•22 years ago
|
||
a= justdave
Assignee | ||
Comment 6•22 years ago
|
||
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
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•