"fix for bug #821: Entry of private addressbook is shown as \"personal\" in view mode

also fixed not working private icon in the list"
This commit is contained in:
Ralf Becker 2007-06-03 11:42:39 +00:00
parent 86870ce4d7
commit d5829fa68b

View File

@ -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(