Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
extensions
Call Next Dashlet
Commits
d38e5f73
Commit
d38e5f73
authored
Sep 10, 2019
by
Christian Wach
⚽
Browse files
Do not stomp on contact ID
parent
cf5f38d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRM/CallNextDashlet/Page/CallNextDashlet.php
View file @
d38e5f73
...
...
@@ -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
;
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment