mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Calendar: If an event moves from the past to the future, send notifications according to preferences
Previously we ignored all notifications, because the event _was_ in the past.
This commit is contained in:
parent
2b965a8399
commit
ea96fc2bd1
@ -874,7 +874,9 @@ class calendar_boupdate extends calendar_bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ignore events in the past (give a tolerance of 10 seconds for the script)
|
// ignore events in the past (give a tolerance of 10 seconds for the script)
|
||||||
if($old_event && $this->date2ts($old_event['start']) < ($this->now_su - 10))
|
if($new_event && $this->date2ts($new_event['start']) < ($this->now_su - 10) ||
|
||||||
|
!$new_event && $old_event && $this->date2ts($old_event['start']) < ($this->now_su - 10)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user