[Rt-commit] [rtir] 08/09: Fix a couple bugs in the reporting tools

Jesse Vincent jesse at bestpractical.com
Mon Mar 16 02:41:36 EDT 2015


This is an automated email from the git hooks/post-receive script.

jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.

commit 5e4bcd4202fc4774640b60e2b156c3e538817ed4
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sun Mar 15 23:39:04 2015 -0700

    Fix a couple bugs in the reporting tools
---
 html/RTIR/Reporting/Report.html | 10 +++++-----
 html/RTIR/Reporting/index.html  |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/html/RTIR/Reporting/Report.html b/html/RTIR/Reporting/Report.html
index cacd848..146b983 100644
--- a/html/RTIR/Reporting/Report.html
+++ b/html/RTIR/Reporting/Report.html
@@ -162,20 +162,20 @@ my @classifications;
 
 # of new reports outstanding at start of the period
 my $outstanding = RT::Tickets->new( $session{'CurrentUser'} );
-$outstanding->FromSQL("Lifecycle = '".RT::IR->lifecycle_reports."' AND Created < '$start' AND (Resolved = '1970-01-01 00:00:01' OR Resolved > '$start')");
+$outstanding->FromSQL("Lifecycle = '".RT::IR->lifecycle_report."' AND Created < '$start' AND (Resolved = '1970-01-01 00:00:01' OR Resolved > '$start')");
 my $outstanding_pruned = $outstanding;
 
 # of new reports created during the period
 my $tix_created = RT::Tickets->new( $session{'CurrentUser'} );
-$tix_created->FromSQL("Lifecycle = '".RT::IR->lifecycle_reports."' AND Created > '$start' AND Created < '$end'");
-my $tix_created_pruned = $tix_created_pruned;
+$tix_created->FromSQL("Lifecycle = '".RT::IR->lifecycle_report."' AND Created > '$start' AND Created < '$end'");
+my $tix_created_pruned = $tix_created;
 
 # of new reports resolved/closed/deleted during the period
 # this means "number of reports created during the period that were 
 # also closed during the period(or before which is insane but possible)"
 
 my $tix_resolved = RT::Tickets->new( $session{'CurrentUser'} );
-$tix_resolved->FromSQL("Lifecycle = '".RT::IR->lifecycle_reports. "' AND Created > '$start' AND Created < '$end' AND (Resolved > '1970-01-01 00:00:01' AND Resolved < '$end')");
+$tix_resolved->FromSQL("Lifecycle = '".RT::IR->lifecycle_report. "' AND Created > '$start' AND Created < '$end' AND (Resolved > '1970-01-01 00:00:01' AND Resolved < '$end')");
 my $tix_resolved_pruned = $tix_resolved;
 
 # of new reports oustanding at end of the period
@@ -183,7 +183,7 @@ my $tix_resolved_pruned = $tix_resolved;
 # closed during the period"
 
 my $tix_unresolved = RT::Tickets->new( $session{'CurrentUser'} );
-$tix_unresolved->FromSQL("Lifecycle = '".RT::IR->lifecycle_reports."' AND Created > '$start' AND Created < '$end' AND ( Resolved = '1970-01-01 00:00:01' OR Resolved > '$end' )");
+$tix_unresolved->FromSQL("Lifecycle = '".RT::IR->lifecycle_report."' AND Created > '$start' AND Created < '$end' AND ( Resolved = '1970-01-01 00:00:01' OR Resolved > '$end' )");
 my $tix_unresolved_pruned = $tix_unresolved;
 
 if ( $TextReport ) {
diff --git a/html/RTIR/Reporting/index.html b/html/RTIR/Reporting/index.html
index 11fcf03..bab4270 100644
--- a/html/RTIR/Reporting/index.html
+++ b/html/RTIR/Reporting/index.html
@@ -92,7 +92,7 @@ if ( $ARGS{'HTMLReport'} || $ARGS{'TextReport'} || $ARGS{'SpreadsheetReport'} )
     $ext = 'txt' if $ARGS{'TextReport'};
     $ext = 'tsv' if $ARGS{'SpreadsheetReport'};
     
-    return RT::Interface::Web::Redirect(RT::IR->HREFTo('RTIR/Reporting/Report.'. $ext
+    return RT::Interface::Web::Redirect(RT::IR->HREFTo('Reporting/Report.'. $ext
        . "?". $m->comp( '/Elements/QueryString', %ARGS )));
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list