events not guaranteed to have a code, treat display as such
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Apr 2009 15:16:53 +0000 (15:16 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Apr 2009 15:16:53 +0000 (15:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12826 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/Event.js

index bc82634..a37f6ff 100644 (file)
@@ -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;