fix for external invitations
[tine20] / tine20 / Calendar / js / iMIPDetailsPanel.js
index 45f99c5..e90c9d1 100644 (file)
@@ -125,7 +125,6 @@ Tine.Calendar.iMIPDetailsPanel = Ext.extend(Tine.Calendar.EventDetailsPanel, {
             this.iMIPrecord.set('event', Tine.Calendar.backend.recordReader({
                 responseText: Ext.util.JSON.encode(result.event)
             }));
-            
             this.showIMIP();
         }, this);
     },
@@ -238,7 +237,7 @@ Tine.Calendar.iMIPDetailsPanel = Ext.extend(Tine.Calendar.EventDetailsPanel, {
                     this.iMIPclause.setText(this.app.i18n._('An invited attendee responded to the invitation.'));
                     break;
                     
-                default:            
+                default:
                     this.iMIPclause.setText(this.app.i18n._("Unsupported method"));
                     break;
             }
@@ -248,8 +247,13 @@ Tine.Calendar.iMIPDetailsPanel = Ext.extend(Tine.Calendar.EventDetailsPanel, {
         singleRecordPanel.setVisible(true);
         singleRecordPanel.setHeight(150);
         
-        
-        this.record = event;
-        singleRecordPanel.loadRecord(event);
+        if (existingEvent) {
+            this.record = Tine.Calendar.backend.recordReader({
+                responseText: Ext.util.JSON.encode(existingEvent)
+            });
+        } else {
+            this.record = event;
+        }
+        singleRecordPanel.loadRecord(this.record);
     }
 });