mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
*Calendar: Owner / participant no longer have automatically created account group lists offered in mailing list results
This commit is contained in:
parent
b3a700d7ee
commit
aaada4629d
@ -350,6 +350,12 @@ class calendar_bo
|
||||
{
|
||||
$list = $contacts_obj->read_list((int)$id);
|
||||
|
||||
if(!$list && $id < 0)
|
||||
{
|
||||
$list = array(
|
||||
'list_name' => Link::title('api-accounts',$id) ?: Api\Accounts::username($id)
|
||||
);
|
||||
}
|
||||
$data[] = array(
|
||||
'res_id' => $id,
|
||||
'rights' => self::ACL_READ_FOR_PARTICIPANTS,
|
||||
|
@ -207,12 +207,13 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
||||
switch ($type)
|
||||
{
|
||||
case 'l':
|
||||
// Include mailing lists
|
||||
// Include mailing lists, but not account groups
|
||||
$lists = array_filter(
|
||||
$contacts_obj->get_lists(Api\Acl::READ),
|
||||
function($element) use($query) {
|
||||
return (stripos($element, $query) !== false);
|
||||
}
|
||||
function($element, $index) use($query) {
|
||||
return $index > 0 && (stripos($element, $query) !== false);
|
||||
},
|
||||
ARRAY_FILTER_USE_BOTH
|
||||
);
|
||||
foreach($lists as $list_id => $list)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user