From 8e4ba4d60a1ea0e09f2740c860a4cb6f3bd20d1b Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 5 Aug 2016 16:37:36 -0400 Subject: [PATCH] fix fleshing set of next copy statuses Signed-off-by: Galen Charlton Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/services/ui.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/services/ui.js b/Open-ILS/web/js/ui/default/staff/services/ui.js index e0cfb3c1ea..6c966b18b3 100644 --- a/Open-ILS/web/js/ui/default/staff/services/ui.js +++ b/Open-ILS/web/js/ui/default/staff/services/ui.js @@ -671,9 +671,9 @@ function($uibModal , $interpolate , egCore) { return defer.promise; } - // returns a promise resolved with the list of circ mods + // returns a promise resolved with the list of circ statuses $scope.get_copy_statuses = function() { - if (egCore.env.ccm) + if (egCore.env.ccs) return $q.when(egCore.env.ccs.list); return egCore.pcrud.retrieveAll('ccs', null, {atomic : true}) @@ -712,8 +712,8 @@ function($uibModal , $interpolate , egCore) { if ($scope.mode == 'checkin' && next_statuses.length > 0) { $scope.get_copy_statuses().then(function() { angular.forEach(next_statuses, function(st) { - if (egCore.env.ccs.list[st]) - $scope.next_statuses.push(egCore.env.ccs.list[st]); + if (egCore.env.ccs.map[st]) + $scope.next_statuses.push(egCore.env.ccs.map[st]); }); $scope.params.the_next_status = $scope.next_statuses[0].id(); }); -- 2.11.0