From 8675c75443ddacf9c5b6b9f95bfa9c2cf8214d29 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 8 Apr 2014 17:23:38 +0000 Subject: [PATCH] All addressbook links now follow view/edit preference too --- addressbook/inc/class.addressbook_hooks.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_hooks.inc.php b/addressbook/inc/class.addressbook_hooks.inc.php index d5afbda88f..ca29411c7c 100644 --- a/addressbook/inc/class.addressbook_hooks.inc.php +++ b/addressbook/inc/class.addressbook_hooks.inc.php @@ -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; } /**