From a3c29f224bc5d97914c0cb6f71083730e7672314 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 15 Dec 2009 20:25:33 +0000 Subject: [PATCH] defend against the home_ou default not being an allowed location for workstation registration git-svn-id: svn://svn.open-ils.org/ILS/trunk@15168 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/main/ws_info.xul | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/main/ws_info.xul b/Open-ILS/xul/staff_client/server/main/ws_info.xul index bce872de67..0e27a66528 100644 --- a/Open-ILS/xul/staff_client/server/main/ws_info.xul +++ b/Open-ILS/xul/staff_client/server/main/ws_info.xul @@ -118,8 +118,12 @@ util.widgets.remove_children( x ); var default_lib = g.my_lib; - if ( !get_bool( g.aout_hash[ g.my_libs_ou_hash[ default_lib ].ou_type() ].can_have_users() ) ) { + if (typeof g.my_libs_ou_hash[ default_lib ] == 'undefined') { default_lib = null; + } else { + if ( !get_bool( g.aout_hash[ g.my_libs_ou_hash[ default_lib ].ou_type() ].can_have_users() ) ) { + default_lib = null; + } } g.ml = util.widgets.make_menulist( -- 2.11.0