event edit dialog does not open on 'new' btn
authorCornelius Weiß <c.weiss@metaways.de>
Wed, 21 Jun 2017 16:54:54 +0000 (18:54 +0200)
committerCornelius Weiß <c.weiss@metaways.de>
Wed, 21 Jun 2017 16:54:54 +0000 (18:54 +0200)
Change-Id: Iad9f06c07272838faf23312c83f1e4b58b1223cc

tine20/Calendar/js/EventEditDialog.js

index d02aa5f..05c1915 100644 (file)
@@ -504,7 +504,7 @@ Tine.Calendar.EventEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
      * executed after record got updated from proxy
      */
     onRecordLoad: function() {
-        if (this.record.id.match(/new-ext-gen/)) {
+        if (String(this.record.id).match(/new-ext-gen/)) {
             this.record.set('id', '');
         }
         Tine.Calendar.EventEditDialog.superclass.onRecordLoad.call(this);