mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
* Calendar: New preference for notifications about events you created, but are not a participant in
This commit is contained in:
parent
67c9f137d2
commit
3d865efa38
@ -632,6 +632,11 @@ class calendar_boupdate extends calendar_bo
|
||||
}
|
||||
else
|
||||
{
|
||||
// Check if user is not participating, and does not want notifications
|
||||
if(!$part_prefs['calendar']['receive_not_participating'] && !array_key_exists($userid, $old_event['participants']))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
switch($ru = $part_prefs['calendar']['receive_updates'])
|
||||
{
|
||||
case 'responses':
|
||||
|
@ -526,6 +526,14 @@ class calendar_hooks
|
||||
'admin' => False,
|
||||
'default'=> 'false',
|
||||
),
|
||||
'receive_not_participating' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Receive notifications about events you are not a participant in',
|
||||
'name' => 'receive_not_participating',
|
||||
'values' => $yesno,
|
||||
'help' => 'Do you want to be notified about events you created, but are not participating in?',
|
||||
'default'=> '1'
|
||||
),
|
||||
'notify_externals' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Notify non-EGroupware users about event updates',
|
||||
|
Loading…
Reference in New Issue
Block a user