summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/Extension.pm
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-08-11 22:08:16 +0200
committerDavid Lawrence <dlawrence@mozilla.com>2011-08-11 22:08:16 +0200
commitf30b939630917a63bc733e3963869643eeccdc90 (patch)
treecbba2f3c7d12b591fb4a27d288f135ac66930dad /extensions/BMO/Extension.pm
parent1f30fac936a3b0905e736dd86e559e33caf036ac (diff)
downloadbugzilla-f30b939630917a63bc733e3963869643eeccdc90.tar.gz
bugzilla-f30b939630917a63bc733e3963869643eeccdc90.tar.xz
Bug 655522 - Severity values no longer defined in fields.html
Diffstat (limited to 'extensions/BMO/Extension.pm')
-rw-r--r--extensions/BMO/Extension.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index f9ee38563..79edaad3e 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -148,7 +148,12 @@ sub page_before_template {
};
}
elsif ($page eq 'fields.html') {
- $vars->{'fields_page'} = 1;
+ # Recently global/field-descs.none.tmpl and bug/field-help.none.tmpl
+ # were changed for better performance and are now only loaded once.
+ # I have not found an easy way to allow our hook template to check if
+ # it is called from pages/fields.html.tmpl. So we set a value in request_cache
+ # that our hook template can see.
+ Bugzilla->request_cache->{'bmo_fields_page'} = 1;
}
elsif ($page eq 'remo-form-payment.html') {
_remo_form_payment($vars);