[open-ils-commits] r9027 -
branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 14 17:54:39 EDT 2008
Author: phasefx
Date: 2008-03-14 17:21:00 -0400 (Fri, 14 Mar 2008)
New Revision: 9027
Modified:
branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/network.js
Log:
json number vs string again
Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/network.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/network.js 2008-03-14 21:20:10 UTC (rev 9026)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/network.js 2008-03-14 21:21:00 UTC (rev 9027)
@@ -381,12 +381,12 @@
var result = obj.get_result(req);
if (!result) return req;
- if ( (typeof result.ilsevent != 'undefined') && (override_params.overridable_events.indexOf(result.ilsevent) != -1) ) {
+ if ( (typeof result.ilsevent != 'undefined') && (override_params.overridable_events.indexOf( Number(result.ilsevent) ) != -1) ) {
req = override([result]);
} else {
var found_good = false; var found_bad = false;
for (var i = 0; i < result.length; i++) {
- if ( (result[i].ilsevent != 'undefined') && (override_params.overridable_events.indexOf(result[i].ilsevent) != -1) ) {
+ if ( (result[i].ilsevent != 'undefined') && (override_params.overridable_events.indexOf( Number(result[i].ilsevent) ) != -1) ) {
found_good = true;
} else {
found_bad = true;
More information about the open-ils-commits
mailing list