Revert "Address LP#779975; Status of Available (0) not honored because 0==false ...
authorMike Rylander <mrylander@gmail.com>
Mon, 23 May 2011 14:13:46 +0000 (10:13 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 23 May 2011 14:13:46 +0000 (10:13 -0400)
This reverts commit e823edef09799bcfa11ea34e3c51dd608af00a76.

Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm

index 35287a9..570eeab 100644 (file)
@@ -928,7 +928,7 @@ sub import_record_asset_list_impl {
             $copy->barcode($item->barcode);
             $copy->location($item->location);
             $copy->circ_lib($item->circ_lib || $item->owning_lib);
-            $copy->status( defined($item->status) ? $item->status : OILS_COPY_STATUS_IN_PROCESS );
+            $copy->status($item->status || OILS_COPY_STATUS_IN_PROCESS);
             $copy->circulate($item->circulate);
             $copy->deposit($item->deposit);
             $copy->deposit_amount($item->deposit_amount);