From c5403a3bb81e026cc67ca703b649bffce039df67 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 6 Feb 2019 13:24:12 -0800 Subject: [PATCH] LP1790727: Search for reservations by current_resource This commit searches for reservations by current_resource, rather than target_resource in the daily schedule view of bookings. 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 --- Open-ILS/web/js/ui/default/staff/booking/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/booking/app.js b/Open-ILS/web/js/ui/default/staff/booking/app.js index e6e124c3c4..da061e70d9 100644 --- a/Open-ILS/web/js/ui/default/staff/booking/app.js +++ b/Open-ILS/web/js/ui/default/staff/booking/app.js @@ -88,7 +88,7 @@ angular.module('egBooking', $scope.populate_display = function() { if ($scope.resource) { egCore.pcrud.search('bresv', - {target_resource: $scope.resource, + {current_resource: $scope.resource, start_time: {"<": egOrgDateFilter($scope.endTime, 'yyyy-MM-dd HH:mm:ss', $scope.context_ou)}, end_time: {">": egOrgDateFilter($scope.startTime, 'yyyy-MM-dd HH:mm:ss', $scope.context_ou)}, cancel_time: null}, -- 2.11.0