mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix Error: Class "Accounts" not found
This commit is contained in:
parent
c6b77bea91
commit
c3c458b0e6
@ -84,7 +84,7 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
|||||||
foreach($list as $type => &$accounts)
|
foreach($list as $type => &$accounts)
|
||||||
{
|
{
|
||||||
$options = array('account_type' => $type, 'tag_list' => true) + $accounts;
|
$options = array('account_type' => $type, 'tag_list' => true) + $accounts;
|
||||||
$accounts = Accounts::link_query('', $options);
|
$accounts = Api\Accounts::link_query('', $options);
|
||||||
}
|
}
|
||||||
unset($list["accounts"][9]);
|
unset($list["accounts"][9]);
|
||||||
// Make sure the user themselves is in there
|
// Make sure the user themselves is in there
|
||||||
@ -92,7 +92,7 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
|||||||
{
|
{
|
||||||
$options = array('account_type' => 'accounts', 'tag_list' => true,
|
$options = array('account_type' => 'accounts', 'tag_list' => true,
|
||||||
'account_id' => $GLOBALS['egw_info']['user']['account_id']) + $list['accounts'];
|
'account_id' => $GLOBALS['egw_info']['user']['account_id']) + $list['accounts'];
|
||||||
$list['accounts'] += Accounts::link_query('', $options);
|
$list['accounts'] += Api\Accounts::link_query('', $options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach($accounts as $type_account_list)
|
foreach($accounts as $type_account_list)
|
||||||
|
Loading…
Reference in New Issue
Block a user