mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
added sub-type 'Account contactdate'
This commit is contained in:
parent
d50f13d980
commit
890cbb87e6
@ -32,6 +32,7 @@ class contact_widget
|
|||||||
*/
|
*/
|
||||||
var $human_name = array(
|
var $human_name = array(
|
||||||
'contact-value' => 'Contact',
|
'contact-value' => 'Contact',
|
||||||
|
'contact-account'=> 'Account contactdata',
|
||||||
'contact-fields' => 'Contact fields',
|
'contact-fields' => 'Contact fields',
|
||||||
);
|
);
|
||||||
/**
|
/**
|
||||||
@ -87,10 +88,14 @@ class contact_widget
|
|||||||
$cell['no_lang'] = 1;
|
$cell['no_lang'] = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'contact-account':
|
||||||
|
$value = 'account:'.$value;
|
||||||
|
// fall-throught
|
||||||
case 'contact-value':
|
case 'contact-value':
|
||||||
default:
|
default:
|
||||||
if (substr($value,0,12) == 'addressbook:') $value = substr($value,12); // link-entry syntax
|
if (substr($value,0,12) == 'addressbook:') $value = substr($value,12); // link-entry syntax
|
||||||
if (!$value || !$cell['size'] || (!is_array($this->contact) || $this->contact['id'] != $value) &&
|
if (!$value || !$cell['size'] || (!is_array($this->contact) ||
|
||||||
|
!($this->contact['id'] == $value || 'account:'.$this->contact['account_id'])) &&
|
||||||
!($this->contact = $this->contacts->read($value)))
|
!($this->contact = $this->contacts->read($value)))
|
||||||
{
|
{
|
||||||
$cell = $tmpl->empty_cell();
|
$cell = $tmpl->empty_cell();
|
||||||
|
Loading…
Reference in New Issue
Block a user