Remove participant restriction on new events to just users or groups, now we add any contacts or resources selected as well

This commit is contained in:
nathangray 2016-06-21 11:17:06 -06:00
parent dc8ab4cfc0
commit fc53782f60

View File

@ -120,15 +120,11 @@ class calendar_uiforms extends calendar_ui
if (!isset($_GET['participants']) || $_GET['participants'][0] != 'r')
{
foreach($owner as $uid)
{
// only add users or a single ressource, not all ressources displayed by a category
if (is_numeric($uid) || $owner == $uid)
{
$extra_participants[] = $uid;
}
}
}
}
$owner = $this->user;
}
//error_log("this->owner=$this->owner, _GET[owner]=$_GET[owner], user=$this->user => owner=$owner, extra_participants=".implode(',',$extra_participants).")");