From af57754ae32ae3c78527439e0c0e12699b658f07 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Mon, 23 May 2011 10:13:46 -0400 Subject: [PATCH] Revert "Address LP#779975; Status of Available (0) not honored because 0==false -- use ternary op with defined() instead" This reverts commit e823edef09799bcfa11ea34e3c51dd608af00a76. --- Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm index 35287a97c6..570eeab249 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm @@ -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); -- 2.11.0