Fix bug where alarms set on event start time were displayed on event end time (T653)
This commit is contained in:
parent
1f75e936e5
commit
dc0b4bd39a
1 changed files with 4 additions and 3 deletions
|
@ -613,7 +613,8 @@ class libcalendaring extends rcube_plugin
|
||||||
$notify_time = $alarm['trigger'];
|
$notify_time = $alarm['trigger'];
|
||||||
}
|
}
|
||||||
else if (is_string($alarm['trigger'])) {
|
else if (is_string($alarm['trigger'])) {
|
||||||
$refdate = $alarm['trigger'][0] == '+' ? $rec['end'] : $rec['start'];
|
// $refdate = $alarm['trigger'][0] == '+' ? $rec['end'] : $rec['start'];
|
||||||
|
$refdate = $rec['start'];
|
||||||
|
|
||||||
// abort if no reference date is available to compute notification time
|
// abort if no reference date is available to compute notification time
|
||||||
if (!is_a($refdate, 'DateTime'))
|
if (!is_a($refdate, 'DateTime'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue