[open-ils-commits] [GIT] Evergreen ILS branch master updated. 91201d1923a7498b95ab0adb7540a00636e413c3
Evergreen Git
git at git.evergreen-ils.org
Tue Nov 15 16:04:43 EST 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, master has been updated
via 91201d1923a7498b95ab0adb7540a00636e413c3 (commit)
from 20f9733c135ddff42242ee66df9abc4eb3532e9b (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 91201d1923a7498b95ab0adb7540a00636e413c3
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Tue Nov 15 11:08:00 2011 -0500
Skip shelved holds at checkout auto-fill
Already happened for volume/title hold, but target map checking wasn't
checking to see if the current copy was shelved.
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
index 720bc68..2b99396 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
@@ -1716,6 +1716,11 @@ sub find_related_user_hold {
ahcm => {
field => 'hold',
fkey => 'id'
+ },
+ acp => {
+ field => 'id',
+ fkey => 'current_copy',
+ type => 'left' # there may be no current_copy
}
}
},
@@ -1732,6 +1737,12 @@ sub find_related_user_hold {
'+ahcm' => {
target_copy => $self->copy->id
},
+ '+acp' => {
+ '-or' => [
+ {id => undef}, # left-join copy may be nonexistent
+ {status => {'!=' => OILS_COPY_STATUS_ON_HOLDS_SHELF}},
+ ]
+ }
},
order_by => {ahr => {request_time => {direction => 'asc'}}},
limit => 1
-----------------------------------------------------------------------
Summary of changes:
.../lib/OpenILS/Application/Circ/Circulate.pm | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list