Skip to content

Commit

Permalink
[jan] Ignore iCalendar alarms without action, and use first, not last…
Browse files Browse the repository at this point in the history
… alarm (Bug #12865).

Conflicts:
	kronolith/docs/CHANGES
	kronolith/package.xml
  • Loading branch information
yunosh committed Nov 27, 2013
1 parent fcd11ab commit 9422ef8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kronolith/docs/CHANGES
Expand Up @@ -2,6 +2,8 @@
v4.1.5-git
----------

[jan] Ignore iCalendar alarms without action, and use first, not last alarm
(Bug #12865).
[mjr] Fix incorrect case comparison when synchronizing tags with Kolab (Bug
#12770).
[mjr] Honor recurrence-id range values when deleting recurring events (Bug
Expand Down
7 changes: 7 additions & 0 deletions kronolith/lib/Event.php
Expand Up @@ -1187,6 +1187,12 @@ public function fromiCalendar($vEvent)
if (!($alarm instanceof Horde_Icalendar_Valarm)) {
continue;
}
try {
if ($alarm->getAttribute('ACTION') == 'NONE') {
continue;
}
} catch (Horde_Icalendar_Exception $e) {
}
try {
// @todo consider implementing different ACTION types.
// $action = $alarm->getAttribute('ACTION');
Expand Down Expand Up @@ -1220,6 +1226,7 @@ public function fromiCalendar($vEvent)
if (!$haveTrigger) {
$this->alarm = -intval($trigger / 60);
}
break;
}

// Alarm snoozing/dismissal
Expand Down
2 changes: 2 additions & 0 deletions kronolith/package.xml
Expand Up @@ -33,6 +33,7 @@
</stability>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [jan] Ignore iCalendar alarms without action, and use first, not last alarm (Bug #12865).
* [mjr] Fix incorrect case comparison when synchronizing tags with Kolab (Bug #12770).
* [mjr] Honor recurrence-id range values when deleting recurring events (Bug #12746).
* [mjr] Fix deleting and sending iTip notifications for recurring events (Bug: 12746).
Expand Down Expand Up @@ -2243,6 +2244,7 @@
<date>2013-10-29</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [jan] Ignore iCalendar alarms without action, and use first, not last alarm (Bug #12865).
* [mjr] Fix incorrect case comparison when synchronizing tags with Kolab (Bug #12770).
* [mjr] Honor recurrence-id range values when deleting recurring events (Bug #12746).
* [mjr] Fix deleting and sending iTip notifications for recurring events (Bug: 12746).
Expand Down

0 comments on commit 9422ef8

Please sign in to comment.