[open-ils-commits] r9728 - trunk/Open-ILS/xul/staff_client/server/main

svn at svn.open-ils.org svn at svn.open-ils.org
Thu May 29 11:18:07 EDT 2008


Author: phasefx
Date: 2008-05-29 11:18:05 -0400 (Thu, 29 May 2008)
New Revision: 9728

Modified:
   trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul
Log:
just in case JSON returns that value as a string instead of a number

Modified: trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul	2008-05-29 15:16:55 UTC (rev 9727)
+++ trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul	2008-05-29 15:18:05 UTC (rev 9728)
@@ -77,7 +77,7 @@
 				'PERM_RETRIEVE_HIGHEST_ORG',
 				[ xulG.auth.session.key, g.user.id(), 'REGISTER_WORKSTATION']
 			);
-			if (highest_org_id == -1) {
+			if (highest_org_id == -1 || highest_org_id == '-1') {
 				alert(document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.workstation_registration_denied'));
 				xulG.auth.logoff();
 				return;



More information about the open-ils-commits mailing list