webstaff: fix console noise spawned by OU selector
authorGalen Charlton <gmc@esilibrary.com>
Tue, 26 Jan 2016 22:44:32 +0000 (17:44 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 2 Feb 2016 19:58:54 +0000 (14:58 -0500)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/services/ui.js

index f5ce418..4fe04a7 100644 (file)
@@ -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;
             }