From cbf87ed4402b0fd676426a465a38e3520b5f509f Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 29 Apr 2014 14:58:05 -0400 Subject: [PATCH] avoid bucket fetch sans bucket id Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js b/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js index 0da8fbe770..d968d9afc4 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js @@ -399,8 +399,8 @@ function($scope, $location, $q, $timeout, $modal, }]) .controller('SearchCtrl', - ['$scope','$routeParams','egAuth','egNet','egIDL','bucketSvc', -function($scope, $routeParams, egAuth, egNet, egIDL, bucketSvc) { + ['$scope','$routeParams','egAuth','egNet','bucketSvc', +function($scope, $routeParams, egAuth, egNet, bucketSvc) { $scope.setTab('search'); $scope.focusMe = true; @@ -525,5 +525,6 @@ function($scope, $q , $routeParams, bucketSvc) { } // fetch the bucket; on error show the not-allowed message - drawBucket()['catch'](function() { $scope.forbidden = true }); + if ($scope.bucketId) + drawBucket()['catch'](function() { $scope.forbidden = true }); }]) -- 2.11.0