mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
All addressbook links now follow view/edit preference too
This commit is contained in:
parent
683310ba94
commit
8675c75443
@ -353,7 +353,7 @@ class addressbook_hooks
|
||||
*/
|
||||
static function search_link($location)
|
||||
{
|
||||
return array(
|
||||
$links = array(
|
||||
'query' => 'addressbook.addressbook_bo.link_query',
|
||||
'title' => 'addressbook.addressbook_bo.link_title',
|
||||
'titles' => 'addressbook.addressbook_bo.link_titles',
|
||||
@ -393,6 +393,12 @@ class addressbook_hooks
|
||||
),
|
||||
'merge' => true,
|
||||
);
|
||||
if($GLOBALS['egw_info']['user']['preferences']['addressbook']['crm_list'] == '~edit~')
|
||||
{
|
||||
$links['view'] = $links['edit'];
|
||||
$links['view_popup'] = $links['edit_popup'];
|
||||
}
|
||||
return $links;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user