From: erickson Date: Thu, 9 Apr 2009 15:16:53 +0000 (+0000) Subject: events not guaranteed to have a code, treat display as such X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dd496433fb6bee49ba8f73484138ba13e072a819;p=Evergreen.git events not guaranteed to have a code, treat display as such git-svn-id: svn://svn.open-ils.org/ILS/trunk@12826 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/Event.js b/Open-ILS/web/js/dojo/openils/Event.js index bc82634055..a37f6ff066 100644 --- a/Open-ILS/web/js/dojo/openils/Event.js +++ b/Open-ILS/web/js/dojo/openils/Event.js @@ -32,7 +32,7 @@ if(!dojo._hasResource["openils.Event"]) { }, 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;