Add external owners that a select account widget will not find, so they are there on initial load

This commit is contained in:
Nathan Gray 2015-12-08 00:57:45 +00:00
parent 967882240a
commit 9dd383c5a9

View File

@ -638,20 +638,20 @@ class calendar_ui
$content['view'] = $this->view ? $this->view : 'week'; $content['view'] = $this->view ? $this->view : 'week';
$content['date'] = $this->date ? $this->date : egw_time(); $content['date'] = $this->date ? $this->date : egw_time();
$owners = $this->owner ? is_array($this->owner) ? array($this->owner) : explode(',',$this->owner) : array($GLOBALS['egw_info']['user']['account_id']); $owners = $this->owner ? is_array($this->owner) ? array($this->owner) : explode(',',$this->owner) : array($GLOBALS['egw_info']['user']['account_id']);
/*
$sel_options = array();
// Add external owners that a select account widget will not find
foreach($owners as $owner) foreach($owners as $owner)
{ {
$app = 'home-accounts'; if(!is_numeric(substr($owner, 0,1)))
switch(substr($owner, 0,1))
{ {
case 'r': $resource = $this->resources[substr($owner, 0,1)];
$app = 'resources'; $sel_options['owner'][] = array('value' => $owner, 'label' => egw_link::title($resource['app'], substr($owner,1)));
break;
} }
$content['owner'][] = array('app' => $app, 'id' => (int)$owner ? $owner : substr($owner,1));
} }
*/
$sel_options = array();
$readonlys = array(); $readonlys = array();
foreach(array( foreach(array(
array( array(