[open-ils-commits] r12826 - trunk/Open-ILS/web/js/dojo/openils (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Apr 9 11:16:56 EDT 2009
Author: erickson
Date: 2009-04-09 11:16:53 -0400 (Thu, 09 Apr 2009)
New Revision: 12826
Modified:
trunk/Open-ILS/web/js/dojo/openils/Event.js
Log:
events not guaranteed to have a code, treat display as such
Modified: trunk/Open-ILS/web/js/dojo/openils/Event.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/Event.js 2009-04-09 15:16:05 UTC (rev 12825)
+++ trunk/Open-ILS/web/js/dojo/openils/Event.js 2009-04-09 15:16:53 UTC (rev 12826)
@@ -32,7 +32,7 @@
},
toString : function() {
- var s = 'Event: ' + this.code + ':' + this.textcode + ' -> ' + new String(this.desc);
+ var s = 'Event: ' + (this.code || '') + ':' + this.textcode + ' -> ' + new String(this.desc);
if(this.ilsperm)
s += ' ' + this.ilsperm + '@' + this.ilspermloc;
return s;
More information about the open-ils-commits
mailing list