[open-ils-commits] r20454 - branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 12 11:19:07 EDT 2011
Author: miker
Date: 2011-05-12 11:19:04 -0400 (Thu, 12 May 2011)
New Revision: 20454
Modified:
branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm
Log:
Address LP#779975; Status of Available (0) not honored because 0==false -- use ternary op with defined() instead
Modified: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm 2011-05-12 15:18:20 UTC (rev 20453)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm 2011-05-12 15:19:04 UTC (rev 20454)
@@ -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