LP#1672421-Fix for Catalog record Holds view grid not refreshing
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Wed, 21 Jun 2017 21:02:24 +0000 (17:02 -0400)
committerJason Etheridge <jason@equinoxinitiative.org>
Fri, 30 Jun 2017 19:48:44 +0000 (15:48 -0400)
Holds view grid was not refreshing upon paging using next/prev
Added call to egHolds service to fix that.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>

Signed-off-by: Jason Etheridge <jason@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index 1f1ac58..c8471a9 100644 (file)
@@ -442,6 +442,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
             conjoinedSvc.fetch($scope.record_id).then(function(){
                 $scope.conjoinedGridDataProvider.refresh();
             });
+            egHolds.fetch_holds(hold_ids).then($scope.hold_grid_data_provider.refresh);
             init_parts_url();
             $location.update_path('/cat/catalog/record/' + $scope.record_id);
         } else {