plugins/calendar
Aleksander Machniak
machniak at kolabsys.com
Tue Dec 18 14:09:05 CET 2012
plugins/calendar/calendar.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 3d2f1cfac449fe82cf8c847b8929ec5912475754
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Tue Dec 18 14:08:20 2012 +0100
Fix bug where event attachments/participants were lost on event move (#1480)
diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php
index 0584606..5f4cc6b 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -636,7 +636,7 @@ class calendar extends rcube_plugin
case "move":
$this->prepare_event($event, $action);
$success = $this->driver->move_event($event);
- $reload = $success && $event['_savemode'] ? 2 : 1;
+ $reload = $success && $event['_savemode'] ? 2 : 1;
break;
case "remove":
@@ -1262,6 +1262,11 @@ class calendar extends rcube_plugin
$event['start'] = new DateTime($event['start'], $this->timezone);
$event['end'] = new DateTime($event['end'], $this->timezone);
+ // start/end is all we need for 'move' action (#1480)
+ if ($action == 'move') {
+ return;
+ }
+
if ($event['recurrence']['UNTIL'])
$event['recurrence']['UNTIL'] = new DateTime($event['recurrence']['UNTIL'], $this->timezone);
More information about the commits
mailing list