From: phasefx Date: Tue, 15 Dec 2009 20:25:33 +0000 (+0000) Subject: defend against the home_ou default not being an allowed location for workstation... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a3c29f224bc5d97914c0cb6f71083730e7672314;p=evergreen%2Fpines.git 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 --- 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(