diff --git a/mozilla/webtools/bugzilla/Bugzilla/Search.pm b/mozilla/webtools/bugzilla/Bugzilla/Search.pm index 5a651a3b519..ebccdb51e08 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Search.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Search.pm @@ -102,6 +102,8 @@ sub init { my @orderby; my $debug = 0; + my @debugdata; + if ($params->param('debug')) { $debug = 1; } my @fields; my @supptables; @@ -1160,7 +1162,9 @@ sub init { $params->param("type$chart-$row-$col", shift(@$ref)); $params->param("value$chart-$row-$col", shift(@$ref)); if ($debug) { - print qq{
$params->param("field$chart-$row-$col") | $params->param("type$chart-$row-$col") | $params->param("value$chart-$row-$col")*
\n}; + push(@debugdata, "$row-$col = " . + $params->param("field$chart-$row-$col") . ' | ' . $params->param("type$chart-$row-$col") . ' | ' . + $params->param("value$chart-$row-$col") . ' *'); } $col++; @@ -1298,7 +1302,7 @@ sub init { if ("$f,$t,$rhs" =~ m/$key/) { my $ref = $funcsbykey{$key}; if ($debug) { - print "$key ($f , $t , $rhs ) => "; + push(@debugdata, "$key ($f / $t / $rhs) =>"); } $ff = $f; if ($f !~ /\./) { @@ -1306,7 +1310,8 @@ sub init { } &$ref; if ($debug) { - print "$f , $t , $v , $term
"; + push(@debugdata, "$f / $t / $v / " . + ($term || "undef") . " *"); } if ($term) { last; @@ -1436,12 +1441,8 @@ sub init { $query .= " ORDER BY " . join(',', @orderby); } - if ($debug) { - print "" . value_quote($query) . "
+ [% FOREACH debugline = debugdata %]
+ [% debugline FILTER html %]
+ [% END %]
+
[% query FILTER html %]
[% END %] diff --git a/mozilla/webtools/bugzilla/template/en/default/list/server-push.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/list/server-push.html.tmpl index 4fb88e9b441..be7a63c56e6 100644 --- a/mozilla/webtools/bugzilla/template/en/default/list/server-push.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/list/server-push.html.tmpl @@ -34,6 +34,11 @@
+ [% FOREACH debugline = debugdata %]
+ [% debugline FILTER html %]
+ [% END %]
+
[% query FILTER html %]