From e813de67fe8ea6a3ef07a9ebcc281a89b0cac74c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 26 Jan 2016 17:44:32 -0500 Subject: [PATCH] webstaff: fix console noise spawned by OU selector Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/services/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f5ce418224..4fe04a7676 100644 --- a/Open-ILS/web/js/ui/default/staff/services/ui.js +++ b/Open-ILS/web/js/ui/default/staff/services/ui.js @@ -348,7 +348,7 @@ function($modal, $interpolate) { }); $scope.getSelectedName = function() { - if ($scope.selected) + if ($scope.selected && $scope.selected.shortname) return $scope.selected.shortname(); return $scope.label; } -- 2.11.0