[open-ils-commits] r11852 - branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/util

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 15 16:00:18 EST 2009


Author: phasefx
Date: 2009-01-15 16:00:12 -0500 (Thu, 15 Jan 2009)
New Revision: 11852

Modified:
   branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/util/error.js
Log:
accept null as an error payload for unexpected error dialog

Modified: branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/util/error.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/util/error.js	2009-01-15 20:59:33 UTC (rev 11851)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/util/error.js	2009-01-15 21:00:12 UTC (rev 11852)
@@ -268,7 +268,7 @@
 
 	'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.";
 			}



More information about the open-ils-commits mailing list