From 2e958a529d3148ee9afe1256b684d33ed824a5e9 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 15 Jan 2009 21:00:12 +0000 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/chrome/content/util/error.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."; } -- 2.11.0