[open-ils-commits] [GIT] Evergreen ILS branch rel_1_6_2 updated. e823edef09799bcfa11ea34e3c51dd608af00a76
Evergreen Git
git at git.evergreen-ils.org
Mon May 23 09:37:52 EDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_1_6_2 has been updated
via e823edef09799bcfa11ea34e3c51dd608af00a76 (commit)
from c2d79986e591c3ef592e7418410dbfdbe70ddcf7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e823edef09799bcfa11ea34e3c51dd608af00a76
Author: miker <miker at dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Thu May 12 15:19:04 2011 +0000
Address LP#779975; Status of Available (0) not honored because 0==false -- use ternary op with defined() instead
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@20454 dcc99617-32d9-48b4-a31d-7c20da2025e4
(cherry picked from commit 2d96fea0800a99092acdc97330b33b3d421f3098)
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm
index 570eeab..35287a9 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($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);
-----------------------------------------------------------------------
Summary of changes:
.../src/perlmods/OpenILS/Application/Vandelay.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list