typos in reservation logic
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 23 Mar 2010 17:49:13 +0000 (17:49 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 23 Mar 2010 17:49:13 +0000 (17:49 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15941 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm

index 33ba489..a9fcaa2 100644 (file)
@@ -1499,7 +1499,7 @@ sub reservation_targeter {
                     next;
                 }
 
-                my $copy = [ asset::copy->search( deleted => f, barcode => $res->barcode )]->[0];
+                my $copy = [ asset::copy->search( deleted => 'f', barcode => $res->barcode )]->[0];
 
                 unless ($copy) {
                     push @good_resources, $res;
@@ -1567,7 +1567,7 @@ sub reservation_targeter {
                     sort { $a->[0] <=> $b->[0] }
                     map  {
                         [   actor::org_unit_proximity->search_where(
-                                { from_org => $bresv->pickup_lib.'', to_org => $_=>owner.'' }
+                                { from_org => $bresv->pickup_lib.'', to_org => $_->owner.'' }
                             )->[0]->prox,
                             $_
                         ]