summaryrefslogtreecommitdiff
path: root/plugins/calendar/calendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/calendar/calendar.php')
-rw-r--r--plugins/calendar/calendar.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php
index c632376..8d38a6a 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -637,7 +637,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":
@@ -1586,6 +1586,11 @@ class calendar extends rcube_plugin
$event['start'] = new DateTime(is_numeric($event['start']) ? '@'.$event['start'] : $event['start'], $this->user_timezone);
$event['end'] = new DateTime(is_numeric($event['end']) ? '@'.$event['end'] : $event['end'], $this->user_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->user_timezone);