From 6b9a7c4ce4008f3a6da481c565539b9ef680932e Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 6 Feb 2019 14:37:33 -0800 Subject: [PATCH] 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 Signed-off-by: Remington Steed --- Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm index 2afdd6bfb8..a715f88259 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'}} }; -- 2.11.0