[open-ils-commits] r15084 - branches/rel_1_6/Open-ILS/src/reporter (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Dec 4 13:46:30 EST 2009


Author: miker
Date: 2009-12-04 13:46:26 -0500 (Fri, 04 Dec 2009)
New Revision: 15084

Modified:
   branches/rel_1_6/Open-ILS/src/reporter/clark-kent.pl
Log:
patch from Steve Callendar to protect against report output failure when trying to draw a line graph with no datasets

Modified: branches/rel_1_6/Open-ILS/src/reporter/clark-kent.pl
===================================================================
--- branches/rel_1_6/Open-ILS/src/reporter/clark-kent.pl	2009-12-04 18:45:48 UTC (rev 15083)
+++ branches/rel_1_6/Open-ILS/src/reporter/clark-kent.pl	2009-12-04 18:46:26 UTC (rev 15084)
@@ -782,6 +782,8 @@
 		
 	}
 
+	return [] unless ($new_data[0] && @{$new_data[0]});
+
 	for my $col (@use_me) {
 		push @leg, $r->{column_labels}->[$values[$col - 1]];
 	}



More information about the open-ils-commits mailing list