All addressbook links now follow view/edit preference too

This commit is contained in:
Nathan Gray 2014-04-08 17:23:38 +00:00
parent 683310ba94
commit 8675c75443

View File

@ -353,7 +353,7 @@ class addressbook_hooks
*/ */
static function search_link($location) static function search_link($location)
{ {
return array( $links = array(
'query' => 'addressbook.addressbook_bo.link_query', 'query' => 'addressbook.addressbook_bo.link_query',
'title' => 'addressbook.addressbook_bo.link_title', 'title' => 'addressbook.addressbook_bo.link_title',
'titles' => 'addressbook.addressbook_bo.link_titles', 'titles' => 'addressbook.addressbook_bo.link_titles',
@ -393,6 +393,12 @@ class addressbook_hooks
), ),
'merge' => true, 'merge' => true,
); );
if($GLOBALS['egw_info']['user']['preferences']['addressbook']['crm_list'] == '~edit~')
{
$links['view'] = $links['edit'];
$links['view_popup'] = $links['edit_popup'];
}
return $links;
} }
/** /**