Closed Bug 727541 Opened 12 years ago Closed 12 years ago

Constants in Bugzilla::WebService::Constants should be available inside the templates similar to Bugzilla::Constants

Categories

(Bugzilla :: WebService, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: dkl, Assigned: dkl)

Details

Attachments

(1 file)

Currently Bugzilla/Template.pm allows all constants in Bugzilla::Constants to be passed to the templates if they need access to them. Constants in Bugzilla::WebService::Constants are not passed in. This could be useful to have access to for error messages, etc. such as in user-error.html.tmpl.

Patch coming

dkl
Comment on attachment 597494 [details] [diff] [review]
Patch to allow access to webservice constants in templates (v1)

>+            WS_DISPATCH => \&Bugzilla::WebService::Constants::WS_DISPATCH, 

I really doubt we will ever need it to be accessible from templates. And in the rare case where we would, we should pass it to the template explicitly.

r=LpSolit with this line removed.
Attachment #597494 - Flags: review?(LpSolit) → review+
Severity: normal → enhancement
Flags: approval+
Target Milestone: --- → Bugzilla 4.4
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk
modified Bugzilla/Template.pm
Committed revision 8115.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
No longer blocks: CVE-2012-0453
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: