Closed Bug 301664 Opened 19 years ago Closed 19 years ago

Hook for field-descs.html.tmpl

Categories

(Bugzilla :: User Interface, enhancement)

2.21
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: mkanat, Assigned: mkanat)

Details

Attachments

(1 file)

For people customizing their Bugzilla and adding new fields, a hook in
field-descs.html.tmpl would be really helpful.
Add it to the end, so that we can modify the vars that come before.
Attachment #190099 - Flags: review?(myk)
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
>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.
Attachment #190099 - Flags: review?(myk) → review+
Flags: approval2.20+
Flags: approval+
Depends on: 301861
Unfortunately, I've discovered, because of the blocker, this hook isn't very useful.
Flags: approval2.20+
Flags: approval+
Attachment #190099 - Flags: review+ → review-
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+
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 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)
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+
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: 19 years ago
Flags: blocking2.20?
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: