Use current user for owner 0 in planner

This commit is contained in:
Nathan Gray 2015-03-19 15:00:24 +00:00
parent 1b184f4063
commit b2254a4af3

View File

@ -2262,6 +2262,11 @@ class calendar_uiviews extends calendar_ui
$users = $resources = array();
foreach(explode(',',$this->owner) as $user)
{
if($user === '0')
{
// 0 means current user
$user = $this->user;
}
if (!is_numeric($user)) // resources
{
$resources[$user] = $this->bo->participant_name($user);