From: Jane Sandberg Date: Wed, 6 Feb 2019 22:37:33 +0000 (-0800) Subject: LP1797934: Search for reservations by current_resource X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d716633f292b62c3384d2d048eaad67dce997865;p=working%2FEvergreen.git LP1797934: Search for reservations by current_resource Searches for reservations by current_resource, rather than target_resource in the OPAC display of a patron's reservations. This is because some reservations (those placed using the "Reserve Any" button) have a current_resource, but no target_resource. Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm index 936552e1b2..67545f6802 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm @@ -634,7 +634,7 @@ sub upcoming_reservation_list_by_user { 'brt' => [{'column' => 'name', 'alias' => 'resource_type_name'}], 'aou' => ['shortname', {'column' => 'name', 'alias' => 'pickup_name'}] }; - my $from = { 'bresv' => {'brsrc' => {'field' => 'id', 'fkey' => 'target_resource'}, + my $from = { 'bresv' => {'brsrc' => {'field' => 'id', 'fkey' => 'current_resource'}, 'brt' => {'field' => 'id', 'fkey' => 'target_resource_type'}, 'aou' => {'field' => 'id', 'fkey' => 'pickup_lib'}} };