mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +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',
|
'name' => 'default_participant',
|
||||||
'values'=> $default_participants,
|
'values'=> $default_participants,
|
||||||
'help' => 'Participants automatically added to new events',
|
'help' => 'Participants automatically added to new events',
|
||||||
'default' => 0,
|
'default' => 'selected',
|
||||||
'xmlrpc' => False,
|
'xmlrpc' => False,
|
||||||
'admin' => False
|
'admin' => False
|
||||||
),
|
),
|
||||||
|
@ -84,6 +84,15 @@ class calendar_uiforms extends calendar_ui
|
|||||||
if (isset($_GET['owner']))
|
if (isset($_GET['owner']))
|
||||||
{
|
{
|
||||||
$owner = $_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
|
else
|
||||||
{
|
{
|
||||||
@ -165,8 +174,8 @@ class calendar_uiforms extends calendar_ui
|
|||||||
}
|
}
|
||||||
if (!$participants) // if all participants got removed, include current user
|
if (!$participants) // if all participants got removed, include current user
|
||||||
{
|
{
|
||||||
$participants[$this->user] = $participant_types['u'][$this->user] = calendar_so::combine_status('A',1,'CHAIR');
|
$participants[$this->user] = $participant_types['u'][$this->user] = calendar_so::combine_status('A',1,'CHAIR');
|
||||||
}
|
}
|
||||||
if(isset($_GET['cat_id']))
|
if(isset($_GET['cat_id']))
|
||||||
{
|
{
|
||||||
$cat_id = explode(',',$_GET['cat_id']);
|
$cat_id = explode(',',$_GET['cat_id']);
|
||||||
|
Loading…
Reference in New Issue
Block a user