[open-ils-commits] r17949 - branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Sep 23 22:37:35 EDT 2010
Author: phasefx
Date: 2010-09-23 22:37:33 -0400 (Thu, 23 Sep 2010)
New Revision: 17949
Modified:
branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/network.js
Log:
We're starting to get events where ilsevent == empty string now, not just null or a number.
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/network.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/network.js 2010-09-24 02:36:55 UTC (rev 17948)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/network.js 2010-09-24 02:37:33 UTC (rev 17949)
@@ -490,7 +490,7 @@
if (
(typeof result.ilsevent != 'undefined') &&
(
- (override_params.overridable_events.indexOf( result.ilsevent == null ? null : Number(result.ilsevent) ) != -1) ||
+ (override_params.overridable_events.indexOf( result.ilsevent == null || result.ilsevent == '' ? null : Number(result.ilsevent) ) != -1) ||
(override_params.overridable_events.indexOf( result.textcode ) != -1)
)
) {
@@ -501,7 +501,7 @@
if (
(result[i].ilsevent != 'undefined') &&
(
- (override_params.overridable_events.indexOf( result[i].ilsevent == null ? null : Number(result[i].ilsevent) ) != -1) ||
+ (override_params.overridable_events.indexOf( result[i].ilsevent == null || result.ilsevent == '' ? null : Number(result[i].ilsevent) ) != -1) ||
(override_params.overridable_events.indexOf( result[i].textcode ) != -1)
)
) {
More information about the open-ils-commits
mailing list