[Rt-commit] [rtir] 10/14: Update Reporting to use lifecycle name helpers

Jesse Vincent jesse at bestpractical.com
Wed Feb 18 20:55:07 EST 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 c954bdc6eaf8be548685c3209fb15c9d31bf74a3
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Wed Feb 18 17:11:23 2015 -0800

    Update Reporting to use lifecycle name helpers
---
 html/RTIR/Reporting/Report.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/html/RTIR/Reporting/Report.html b/html/RTIR/Reporting/Report.html
index 25f2447..cacd848 100644
--- a/html/RTIR/Reporting/Report.html
+++ b/html/RTIR/Reporting/Report.html
@@ -162,12 +162,12 @@ my @classifications;
 
 # of new reports outstanding at start of the period
 my $outstanding = RT::Tickets->new( $session{'CurrentUser'} );
-$outstanding->FromSQL("Lifecycle = 'incident_Reports' AND Created < '$start' AND (Resolved = '1970-01-01 00:00:01' OR Resolved > '$start')");
+$outstanding->FromSQL("Lifecycle = '".RT::IR->lifecycle_reports."' 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 = 'incident_reports' AND Created > '$start' AND Created < '$end'");
+$tix_created->FromSQL("Lifecycle = '".RT::IR->lifecycle_reports."' AND Created > '$start' AND Created < '$end'");
 my $tix_created_pruned = $tix_created_pruned;
 
 # of new reports resolved/closed/deleted during the period
@@ -175,7 +175,7 @@ my $tix_created_pruned = $tix_created_pruned;
 # also closed during the period(or before which is insane but possible)"
 
 my $tix_resolved = RT::Tickets->new( $session{'CurrentUser'} );
-$tix_resolved->FromSQL("Lifecycle = 'incident_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_reports. "' 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 = 'incident_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_reports."' 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 ) {

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


More information about the rt-commit mailing list