From: phasefx Date: Thu, 15 Jan 2009 21:00:12 +0000 (+0000) Subject: accept null as an error payload for unexpected error dialog X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2e958a529d3148ee9afe1256b684d33ed824a5e9;p=Evergreen.git accept null as an error payload for unexpected error dialog git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11852 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/error.js b/Open-ILS/xul/staff_client/chrome/content/util/error.js index aa83188ec9..33bec73fbb 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/error.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/error.js @@ -268,7 +268,7 @@ util.error.prototype = { 'standard_unexpected_error_alert' : function(msg,E) { var obj = this; - if (typeof E.ilsevent != 'undefined') { + if (E != null && typeof E.ilsevent != 'undefined') { if (E.ilsevent == 0 /* SUCCESS */ ) { msg = "The action involved likely succeeded, however, this part of the software needs to be updated to better understand success messages from the server, so please let us know about it."; }