mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 23:11:57 +01:00
- Fix inconsistency in participant / owner between planner & weekview
- Change default participant default to selected users
This commit is contained in:
parent
4439abc2b1
commit
4d0977f8f9
@ -393,7 +393,7 @@ class calendar_hooks
|
||||
'name' => 'default_participant',
|
||||
'values'=> $default_participants,
|
||||
'help' => 'Participants automatically added to new events',
|
||||
'default' => 0,
|
||||
'default' => 'selected',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
|
@ -84,6 +84,15 @@ class calendar_uiforms extends calendar_ui
|
||||
if (isset($_GET['owner']))
|
||||
{
|
||||
$owner = $_GET['owner'];
|
||||
if(is_array($owner))
|
||||
{
|
||||
$extra_participants += $owner;
|
||||
$owner = count($owner) > 1 ? $this->user : $owner[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
$extra_participants[] = $owner;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user