[open-ils-commits] r15168 - trunk/Open-ILS/xul/staff_client/server/main (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 15 15:25:38 EST 2009


Author: phasefx
Date: 2009-12-15 15:25:33 -0500 (Tue, 15 Dec 2009)
New Revision: 15168

Modified:
   trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul
Log:
defend against the home_ou default not being an allowed location for workstation registration

Modified: trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul	2009-12-15 18:03:18 UTC (rev 15167)
+++ trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul	2009-12-15 20:25:33 UTC (rev 15168)
@@ -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( 



More information about the open-ils-commits mailing list