[open-ils-commits] r9727 - branches/rel_1_2/Open-ILS/xul/staff_client/server/main

svn at svn.open-ils.org svn at svn.open-ils.org
Thu May 29 11:16:56 EDT 2008


Author: phasefx
Date: 2008-05-29 11:16:55 -0400 (Thu, 29 May 2008)
New Revision: 9727

Modified:
   branches/rel_1_2/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: branches/rel_1_2/Open-ILS/xul/staff_client/server/main/ws_info.xul
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/main/ws_info.xul	2008-05-29 15:15:39 UTC (rev 9726)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/main/ws_info.xul	2008-05-29 15:16:55 UTC (rev 9727)
@@ -78,7 +78,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('You do not have permission to register a workstation.');
 				xulG.auth.logoff();
 				return;



More information about the open-ils-commits mailing list