summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2015-01-08 18:49:25 +0100
committerDylan William Hardison <dylan@hardison.net>2015-01-13 16:06:54 +0100
commit8762d1e68c4ea2343f445bb4beb46c1ae04586b1 (patch)
treeb26119ae24f924c50ca50a57dbedd2c6780e3d1b /buglist.cgi
parentcde1c5854904f8989e39a217b1d4f02c9204428e (diff)
downloadbugzilla-8762d1e68c4ea2343f445bb4beb46c1ae04586b1.tar.gz
bugzilla-8762d1e68c4ea2343f445bb4beb46c1ae04586b1.tar.xz
Bug 832095 - Request new buglist/query hooks
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi9
1 files changed, 7 insertions, 2 deletions
diff --git a/buglist.cgi b/buglist.cgi
index ee4b34578..2ecb04e0c 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -25,6 +25,7 @@ use Bugzilla::Product;
use Bugzilla::Field;
use Bugzilla::Status;
use Bugzilla::Token;
+use Bugzilla::Hook;
use Date::Parse;
@@ -447,8 +448,8 @@ if (!$params->param('query_format')) {
# Determine the format in which the user would like to receive the output.
# Uses the default format if the user did not specify an output format;
# otherwise validates the user's choice against the list of available formats.
-my $format = $template->get_format("list/list", scalar $cgi->param('format'),
- scalar $cgi->param('ctype'));
+my $format = $template->get_format("list/list", scalar $params->param('format'),
+ scalar $params->param('ctype'));
# Use server push to display a "Please wait..." message for the user while
# executing their query if their browser supports it and they are viewing
@@ -1124,6 +1125,10 @@ $cgi->close_standby_message($contenttype, $disposition, $disp_prefix, $format->{
# Content Generation
################################################################################
+Bugzilla::Hook::process("buglist_format", {'vars' => $vars,
+ 'format' => $format,
+ 'params' => $params});
+
# Generate and return the UI (HTML page) from the appropriate template.
$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());