%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
+<&| /Widgets/TitleBox, %ARGS &><% $m->content |n%></&>
<%init>
# For compatibility with 3.4
-$m->comp('/Widgets/TitleBox', %ARGS );
+# $m->comp('/Widgets/TitleBox', %ARGS ); Doesn't actually work
</%init>
% Statistics::FormatDate($Statistics::PerDayDateFormat, $dates[0]) . " through " .
% Statistics::FormatDate($Statistics::PerDayDateFormat, $dates[$#dates-1]);
-<& /Elements/TitleBoxStart, title => $title, title_href => "/RTx/Statistics/OpenStalled/index.html?$QueryString"&>
+<& /Elements/TitleBoxStart, title => $title, title_href => $RT::WebPath."/RTx/Statistics/OpenStalled/index.html?$QueryString"&>
<TABLE BORDER=0 cellspacing=0 cellpadding=1 WIDTH="100%">
% if ($ShowHeader) {
<& /RTx/Statistics/Elements/CollectionAsTable/Header,
% Statistics::FormatDate($Statistics::PerDayDateFormat, $dates[$#dates-1]);
<&|/Elements/TitleBox,
title => $title,
- title_href => "/RTx/Statistics/CallsQueueDay/index.html?$QueryString" &>
+ title_href => $RT::WebPath."/RTx/Statistics/CallsQueueDay/index.html?$QueryString" &>
<TABLE BORDER=0 cellspacing=0 cellpadding=1 WIDTH=100%>
% if ($ShowHeader) {
<& /RTx/Statistics/Elements/CollectionAsTable/Header,
%my $title = "Ticket counts by day of week in " . $QueueObj->Name();
<&|/Elements/TitleBox,
title => $title,
- title_href => "/RTx/Statistics/DayOfWeek/index.html?$QueryString" &>
+ title_href => $RT::WebPath."/RTx/Statistics/DayOfWeek/index.html?$QueryString" &>
<TABLE BORDER=0 cellspacing=0 cellpadding=1 WIDTH=100%>
% if ($ShowHeader) {
<& /RTx/Statistics/Elements/CollectionAsTable/Header,
%my $title = "New, Open and Stalled Tickets in " . join(', ', @queues);
-<& /Elements/TitleBoxStart, title => $title, title_href => "/RTx/Statistics/OpenStalled/index.html?$QueryString"&>
+<& /Elements/TitleBoxStart, title => $title, title_href => $RT::WebPath."/RTx/Statistics/OpenStalled/index.html?$QueryString"&>
<TABLE BORDER=0 cellspacing=0 cellpadding=1 WIDTH="100%">
% if ($ShowHeader) {
<& /RTx/Statistics/Elements/CollectionAsTable/Header,
% Statistics::FormatDate($Statistics::PerDayDateFormat, $dates[$#dates-1]);
<&|/Elements/TitleBox,
title => $title,
- title_href => "/RTx/Statistics/Resolution/index.html?$QueryString" &>
+ title_href => $RT::WebPath ."/RTx/Statistics/Resolution/index.html?$QueryString" &>
<TABLE BORDER=0 cellspacing=0 cellpadding=1 WIDTH=100%>
% if ($ShowHeader) {
<& /RTx/Statistics/Elements/CollectionAsTable/Header,
</form>
+<% Statistics::DebugInit($m) |n %>
+
<%ARGS>
$max => $Statistics::TimeToResolveMaxRows
$Queue => undef
# the arrays, so that they end up in start to finish order.
$eEpoch += $Statistics::secsPerDay;
$n = 0;
-until ($#dates == $diff ) {
+until ($#dates == $diff ) {
my $date = new RT::Date($session{CurrentUser});
$date->Set(Value=>$endRange - $n, Format => 'unix');
# Note: we used to adjust the time to local midnight, but