From: Mike Rylander Date: Fri, 8 Apr 2016 15:52:18 +0000 (-0400) Subject: Protect the status list from empty items X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a538d621ebda8cba19facc6f568c0f425471b49b;p=working%2FEvergreen.git Protect the status list from empty items Signed-off-by: Mike Rylander --- 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 d4ed16924f..bd9960a3cd 100644 --- a/Open-ILS/web/js/ui/default/staff/services/ui.js +++ b/Open-ILS/web/js/ui/default/staff/services/ui.js @@ -688,7 +688,8 @@ function($modal , $interpolate , egCore) { if ($scope.mode == 'checkin' && next_statuses.length > 0) { $scope.get_copy_statuses().then(function() { angular.forEach(next_statuses, function(st) { - $scope.next_statuses.push(egCore.env.ccs.list[st]); + if (egCore.env.ccs.list[st]) + $scope.next_statuses.push(egCore.env.ccs.list[st]); }); $scope.params.the_next_status = $scope.next_statuses[0].id(); });