From: Jane Sandberg Date: Wed, 6 Feb 2019 21:24:12 +0000 (-0800) Subject: LP1790727: Search for reservations by current_resource X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fsandbergja%2Flp1790727_booking_daily_schedule_for_feedback_rebased;p=working%2FEvergreen.git 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 --- 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},