From: Steven Callender Date: Thu, 4 Oct 2012 13:17:29 +0000 (-0400) Subject: Exclude copies that have been deleted from showing up on the browse holds shelf list. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9a082a5f6d66c96a057015e9207882ca94e53814;p=evergreen%2Fpines.git Exclude copies that have been deleted from showing up on the browse holds shelf list. If an item had been deleted while it had a status of On Holds Shelf, it would permanently show up on the browse holds list. This will exclude deleted copies from the results. Signed-off-by: Steven Callender Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm index e98b88ebd3..8b206594be 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm @@ -2056,7 +2056,7 @@ sub fetch_captured_holds { } }, where => { - '+acp' => { status => OILS_COPY_STATUS_ON_HOLDS_SHELF }, + '+acp' => { status => OILS_COPY_STATUS_ON_HOLDS_SHELF, deleted => 'f' }, '+alhr' => { capture_time => { "!=" => undef }, current_copy => $current_copy,