From d5829fa68b709431df420c756ce662e603c6c81e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 3 Jun 2007 11:42:39 +0000 Subject: [PATCH] "fix for bug #821: Entry of private addressbook is shown as \"personal\" in view mode also fixed not working private icon in the list" --- addressbook/inc/class.uicontacts.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.uicontacts.inc.php b/addressbook/inc/class.uicontacts.inc.php index 6a8f9d6a87..245467d463 100644 --- a/addressbook/inc/class.uicontacts.inc.php +++ b/addressbook/inc/class.uicontacts.inc.php @@ -1005,7 +1005,7 @@ class uicontacts extends bocontacts $icon = 'accounts'; $label = lang('accounts'); } - elseif ($row['private']) + elseif ($private) { $icon = 'private'; $label = lang('private'); @@ -1493,9 +1493,13 @@ $readonlys['button[vcard]'] = true; $this->tmpl->set_cell_attribute($name,'no_lang',true); } } + if ($this->private_addressbook && $content['private'] && $content['owner'] == $this->user) + { + $content['owner'] .= 'p'; + } // set id for automatic linking via quick add $GLOBALS['egw_info']['flags']['currentid'] = $content['id']; - + $this->tmpl->exec('addressbook.uicontacts.view',$content,$sel_options,$readonlys,array('id' => $content['id'])); $GLOBALS['egw']->hooks->process(array(