Commit d38e5f73 authored by Christian Wach's avatar Christian Wach
Browse files

Do not stomp on contact ID

parent cf5f38d3
......@@ -226,9 +226,11 @@ class CRM_CallNextDashlet_Page_CallNextDashlet extends CRM_Core_Page {
}
foreach($activities_none['values'] AS $activity) {
if (empty($activity['assignee_contact_id'])) {
$contactID = array_shift($activity['target_contact_id']);
if (self::can_view_contact($contactID)) {
$activities[] = $activity;
foreach($activity['target_contact_id'] AS $contactID) {
if (self::can_view_contact($contactID)) {
$activities[] = $activity;
break;
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment