Point account links to addressbook view

This commit is contained in:
Nathan Gray 2012-05-03 15:23:30 +00:00
parent 0d66dd98b7
commit 065fd1a772
2 changed files with 4 additions and 1 deletions

View File

@ -1964,7 +1964,8 @@ class addressbook_ui extends addressbook_bo
}
else
{
if(!$_GET['contact_id'] || !is_array($content = $this->read($_GET['contact_id'])))
$contact_id = $_GET['contact_id'] ? $_GET['contact_id'] : ((int)$_GET['account_id'] ? 'account:'.(int)$_GET['account_id'] : 0);
if(!$contact_id || !is_array($content = $this->read($contact_id)))
{
egw::redirect_link('/index.php',array(
'menuaction' => 'addressbook.addressbook_ui.index',

View File

@ -124,6 +124,8 @@ class egw_link extends solink
'icon' => 'addressbook/accounts',
'query' => 'accounts::link_query',
'title' => 'common::grab_owner_name',
'view' => array('menuaction'=>'addressbook.addressbook_ui.view'),
'view_id' => 'account_id'
),
);
/**