mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
missing commit for contacts colored by category in the link search
This commit is contained in:
parent
d349ffed88
commit
722903656b
@ -785,11 +785,19 @@ class bocontacts extends socontacts
|
||||
$criteria[$col] = $pattern;
|
||||
}
|
||||
}
|
||||
if (($contacts = parent::search($criteria,false,'org_name,n_family,n_given','','%',false,'OR')))
|
||||
if (($contacts = parent::search($criteria,false,'org_name,n_family,n_given,cat_id','','%',false,'OR')))
|
||||
{
|
||||
foreach($contacts as $contact)
|
||||
{
|
||||
$result[$contact['id']] = $this->link_title($contact);
|
||||
// show category color
|
||||
if ($contact['cat_id'] && ($color = etemplate::cats2color($contact['cat_id'])))
|
||||
{
|
||||
$result[$contact['id']] = array(
|
||||
'label' => $result[$contact['id']],
|
||||
'style.backgroundColor' => $color,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
|
Loading…
Reference in New Issue
Block a user