From: phasefx Date: Thu, 29 May 2008 15:18:05 +0000 (+0000) Subject: just in case JSON returns that value as a string instead of a number X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=361aec31cf3a1e1dd0d419902262d00a9346730e;p=Evergreen.git just in case JSON returns that value as a string instead of a number git-svn-id: svn://svn.open-ils.org/ILS/trunk@9728 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 f2764ec25b..141a275dd9 100644 --- a/Open-ILS/xul/staff_client/server/main/ws_info.xul +++ b/Open-ILS/xul/staff_client/server/main/ws_info.xul @@ -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;