[open-ils-commits] r10131 - branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jul 25 13:35:25 EDT 2008


Author: miker
Date: 2008-07-25 13:35:18 -0400 (Fri, 25 Jul 2008)
New Revision: 10131

Modified:
   branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
Log:
use more correct test (rather than a side-effect) to detect short durations circs

Modified: branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
===================================================================
--- branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm	2008-07-25 17:34:38 UTC (rev 10130)
+++ branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm	2008-07-25 17:35:18 UTC (rev 10131)
@@ -540,7 +540,7 @@
             $fine_interval =~ s/(\d{2}):(\d{2}):(\d{2})/$1 h $2 m $3 s/o;
             $fine_interval = interval_to_seconds( $fine_interval );
 	
-			if ( interval_to_seconds( $c->fine_interval ) >= interval_to_seconds('1d') ) {	
+			if ( $fine_interval >= interval_to_seconds('1d') ) {	
 				my $tz_offset_s = 0;
 				if ($due_dt->strftime('%z') =~ /(-|\+)(\d{2}):?(\d{2})/) {
 					$tz_offset_s = $1 . interval_to_seconds( "${2}h ${3}m"); 



More information about the open-ils-commits mailing list