Closed
Bug 301664
Opened 21 years ago
Closed 20 years ago
Hook for field-descs.html.tmpl
Categories
(Bugzilla :: User Interface, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: mkanat, Assigned: mkanat)
Details
Attachments
(1 file)
|
592 bytes,
patch
|
myk
:
review+
mkanat
:
review+
|
Details | Diff | Splinter Review |
For people customizing their Bugzilla and adding new fields, a hook in
field-descs.html.tmpl would be really helpful.
| Assignee | ||
Comment 1•21 years ago
|
||
Add it to the end, so that we can modify the vars that come before.
Attachment #190099 -
Flags: review?(myk)
| Assignee | ||
Comment 2•21 years ago
|
||
I'm not sure what our policy is on adding hooks to branches -- does this go as
far back as 2.18, or only to 2.22?
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.20
Comment 3•21 years ago
|
||
>I'm not sure what our policy is on adding hooks to branches -- does this go as
>far back as 2.18, or only to 2.22?
This should go into 2.20 as well as the branch.
Updated•21 years ago
|
Attachment #190099 -
Flags: review?(myk) → review+
Updated•21 years ago
|
Flags: approval2.20+
Flags: approval+
| Assignee | ||
Comment 4•21 years ago
|
||
Unfortunately, I've discovered, because of the blocker, this hook isn't very useful.
Flags: approval2.20+
Flags: approval+
| Assignee | ||
Updated•21 years ago
|
Attachment #190099 -
Flags: review+ → review-
Comment 5•20 years ago
|
||
Comment on attachment 190099 [details] [diff] [review]
"end" hook for field-descs
After applying this patch, I created
template/en/extension/hook/global/field-descs.none.tmpl/end/foo.html.tmpl with
the following text:
[% status_descs.UNCONFIRMED = "argh" %]
Upon reloading query.cgi, the first value in the Status multiple-select menu
was "argh" rather than "UNCONFIRMED", so this patch actually works as intended
as far as I can tell.
Attachment #190099 -
Flags: review- → review+
Comment 6•20 years ago
|
||
Provided Max confirms that I'm right about the patch working as intended, this
should go into 2.20.
No longer depends on: 301861
Flags: blocking2.20?
Comment 7•20 years ago
|
||
Comment on attachment 190099 [details] [diff] [review]
"end" hook for field-descs
Max, can you try this patch again and see if it works for you?
Attachment #190099 -
Flags: review?(mkanat)
| Assignee | ||
Comment 8•20 years ago
|
||
Comment on attachment 190099 [details] [diff] [review]
"end" hook for field-descs
Yeah, you're right. It seems to work fine on my tip installation on landfill.
I'm not sure why it didn't work on my other 2.20. Ah well.
Attachment #190099 -
Flags: review?(mkanat) → review+
| Assignee | ||
Comment 9•20 years ago
|
||
I hate to be pedantic, but I don't think I would have *blocked* the release on
this, so I don't think we should set blocking2.20+. Having the Target Milestone
at 2.20 is OK, I think.
Tip:
Checking in template/en/default/global/field-descs.none.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/field-descs.none.tmpl,v
<-- field-descs.none.tmpl
new revision: 1.12; previous revision: 1.11
done
2.20:
Checking in template/en/default/global/field-descs.none.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/field-descs.none.tmpl,v
<-- field-descs.none.tmpl
new revision: 1.10.2.2; previous revision: 1.10.2.1
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Flags: blocking2.20?
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•