LP1790727: Search for reservations by current_resource user/sandbergja/lp1790727_booking_daily_schedule_for_feedback_rebased
authorJane Sandberg <sandbej@linnbenton.edu>
Wed, 6 Feb 2019 21:24:12 +0000 (13:24 -0800)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 6 Feb 2019 21:24:12 +0000 (13:24 -0800)
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 <sandbej@linnbenton.edu>
Open-ILS/web/js/ui/default/staff/booking/app.js

index e6e124c..da061e7 100644 (file)
@@ -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},