[open-ils-commits] r20452 - trunk/Open-ILS/src/perlmods/lib/OpenILS/Application (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 12 11:17:53 EDT 2011
Author: miker
Date: 2011-05-12 11:17:50 -0400 (Thu, 12 May 2011)
New Revision: 20452
Modified:
trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
Log:
Address LP#779975; Status of Available (0) not honored because 0==false -- use ternary op with defined() instead
Modified: trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm 2011-05-12 14:24:33 UTC (rev 20451)
+++ trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm 2011-05-12 15:17:50 UTC (rev 20452)
@@ -1040,7 +1040,7 @@
$copy->barcode($item->barcode);
$copy->location($item->location);
$copy->circ_lib($item->circ_lib || $item->owning_lib);
- $copy->status($item->status || OILS_COPY_STATUS_IN_PROCESS);
+ $copy->status( defined($item->status) ? $item->status : OILS_COPY_STATUS_IN_PROCESS );
$copy->circulate($item->circulate);
$copy->deposit($item->deposit);
$copy->deposit_amount($item->deposit_amount);
More information about the open-ils-commits
mailing list