From: phasefx Date: Fri, 24 Sep 2010 02:36:55 +0000 (+0000) Subject: We're starting to get events where ilsevent == empty string now, not just null or... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8bde9df9e9c44cc84c230f2e8dcf16415b5aab82;p=evergreen%2Fbjwebb.git We're starting to get events where ilsevent == empty string now, not just null or a number. git-svn-id: svn://svn.open-ils.org/ILS/trunk@17948 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/network.js b/Open-ILS/xul/staff_client/chrome/content/util/network.js index 4ed7cb5de..5688f1117 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/network.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/network.js @@ -490,7 +490,7 @@ util.network.prototype = { 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 @@ util.network.prototype = { 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) ) ) {