[open-ils-commits] r9081 -
trunk/Open-ILS/xul/staff_client/server/admin
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 19 10:27:38 EDT 2008
Author: erickson
Date: 2008-03-19 09:53:19 -0400 (Wed, 19 Mar 2008)
New Revision: 9081
Modified:
trunk/Open-ILS/xul/staff_client/server/admin/org_settings.js
Log:
coercing setting values that are pure space to nulls
Modified: trunk/Open-ILS/xul/staff_client/server/admin/org_settings.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/org_settings.js 2008-03-19 13:50:52 UTC (rev 9080)
+++ trunk/Open-ILS/xul/staff_client/server/admin/org_settings.js 2008-03-19 13:53:19 UTC (rev 9081)
@@ -140,7 +140,7 @@
function osUpdateOrg( setting, value, org ) {
var s = {};
- s[setting] = value;
+ s[setting] = (value.match(/^\s*$/) == null) ? value : null;
var req = new Request(ORG_SETTING_UPDATE, SESSION, org, s);
req.request.alertEvent = false;
req.send(true);
More information about the open-ils-commits
mailing list