"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'; $icon = 'accounts';
$label = lang('accounts'); $label = lang('accounts');
} }
elseif ($row['private']) elseif ($private)
{ {
$icon = 'private'; $icon = 'private';
$label = lang('private'); $label = lang('private');
@ -1493,6 +1493,10 @@ $readonlys['button[vcard]'] = true;
$this->tmpl->set_cell_attribute($name,'no_lang',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 // set id for automatic linking via quick add
$GLOBALS['egw_info']['flags']['currentid'] = $content['id']; $GLOBALS['egw_info']['flags']['currentid'] = $content['id'];