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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Mar 13 13:12:26 EDT 2008


Author: miker
Date: 2008-03-13 12:38:56 -0400 (Thu, 13 Mar 2008)
New Revision: 9003

Modified:
   branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
Log:
making old_best tests more explicit

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-03-13 16:38:43 UTC (rev 9002)
+++ branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm	2008-03-13 16:38:56 UTC (rev 9003)
@@ -919,11 +919,7 @@
 	
 			if (!scalar(@good_copies)) {
 				$log->info("\tNo (non-current) copies eligible to fill the hold.");
-				if (
-				  $old_best &&
-				  grep { $old_best eq $_ } @$all_copies &&
-				  !action::hold_request->search_where({ current_copy => $old_best->id, capture_time => undef, cancel_time => undef })
-				) {
+				if ( $old_best && grep { ''.$old_best->id eq ''.$_->id } @$all_copies ) {
 					# the old copy is still available
 					$log->debug("\tPushing current_copy back onto the targeting list");
 					push @good_copies, $old_best;



More information about the open-ils-commits mailing list