From: Galen Charlton Date: Fri, 5 Aug 2016 20:37:36 +0000 (-0400) Subject: fix fleshing set of next copy statuses X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8e4ba4d60a1ea0e09f2740c860a4cb6f3bd20d1b;p=working%2FEvergreen.git fix fleshing set of next copy statuses Signed-off-by: Galen Charlton Signed-off-by: Galen Charlton --- 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(); });