mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 23:11:57 +01:00
Add external owners that a select account widget will not find, so they are there on initial load
This commit is contained in:
parent
967882240a
commit
9dd383c5a9
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user