Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
1d07459e
Commit
1d07459e
authored
12 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request
#408
from yashodha/CRM-12274
CRM-12274
parents
6c473f5d
38ba593b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Contact/Form/Search/Custom/ActivitySearch.php
+3
-3
3 additions, 3 deletions
CRM/Contact/Form/Search/Custom/ActivitySearch.php
CRM/Report/Form/Activity.php
+16
-15
16 additions, 15 deletions
CRM/Report/Form/Activity.php
with
19 additions
and
18 deletions
CRM/Contact/Form/Search/Custom/ActivitySearch.php
+
3
−
3
View file @
1d07459e
...
...
@@ -236,10 +236,10 @@ class CRM_Contact_Form_Search_Custom_ActivitySearch implements CRM_Contact_Form_
ON activity.source_contact_id = contact_b.id
LEFT JOIN civicrm_case_activity cca
ON activity.id = cca.activity_id
LEFT JOIN civicrm_activity_
assignmen
t assignment
ON activity.id = assignment.activity_id
LEFT JOIN civicrm_activity_
contac
t assignment
ON activity.id = assignment.activity_id
AND assignment.record_type = 'Assignee'
LEFT JOIN civicrm_contact contact_c
ON assignment.
assignee_
contact_id = contact_c.id "
;
ON assignment.contact_id = contact_c.id "
;
}
/*
...
...
This diff is collapsed.
Click to expand it.
CRM/Report/Form/Activity.php
+
16
−
15
View file @
1d07459e
...
...
@@ -231,10 +231,10 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
),
'civicrm_activity_assignment'
=>
array
(
'dao'
=>
'CRM_Activity_DAO_Activity
Assignmen
t'
,
'dao'
=>
'CRM_Activity_DAO_Activity
Contac
t'
,
'fields'
=>
array
(
'
assignee_
contact_id'
=>
'contact_id'
=>
array
(
'no_display'
=>
TRUE
,
'required'
=>
TRUE
,
...
...
@@ -244,10 +244,10 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
),
'civicrm_activity_target'
=>
array
(
'dao'
=>
'CRM_Activity_DAO_Activity
Targe
t'
,
'dao'
=>
'CRM_Activity_DAO_Activity
Contac
t'
,
'fields'
=>
array
(
'
target_
contact_id'
=>
'contact_id'
=>
array
(
'no_display'
=>
TRUE
,
'required'
=>
TRUE
,
...
...
@@ -348,20 +348,21 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
}
function
from
()
{
$this
->
_from
=
"
FROM civicrm_activity
{
$this
->
_aliases
[
'civicrm_activity'
]
}
LEFT JOIN civicrm_activity_target
{
$this
->
_aliases
[
'civicrm_activity_target'
]
}
ON
{
$this
->
_aliases
[
'civicrm_activity'
]
}
.id =
{
$this
->
_aliases
[
'civicrm_activity_target'
]
}
.activity_id
LEFT JOIN civicrm_activity_assignment
{
$this
->
_aliases
[
'civicrm_activity_assignment'
]
}
ON
{
$this
->
_aliases
[
'civicrm_activity'
]
}
.id =
{
$this
->
_aliases
[
'civicrm_activity_assignment'
]
}
.activity_id
LEFT JOIN civicrm_activity_contact
{
$this
->
_aliases
[
'civicrm_activity_target'
]
}
ON
{
$this
->
_aliases
[
'civicrm_activity'
]
}
.id =
{
$this
->
_aliases
[
'civicrm_activity_target'
]
}
.activity_id AND
{
$this
->
_aliases
[
'civicrm_activity_target'
]
}
.record_type = 'Target'
LEFT JOIN civicrm_activity_contact
{
$this
->
_aliases
[
'civicrm_activity_assignment'
]
}
ON
{
$this
->
_aliases
[
'civicrm_activity'
]
}
.id =
{
$this
->
_aliases
[
'civicrm_activity_assignment'
]
}
.activity_id AND
{
$this
->
_aliases
[
'civicrm_activity_assignment'
]
}
.record_type = 'Assignee'
LEFT JOIN civicrm_contact civicrm_contact_source
ON
{
$this
->
_aliases
[
'civicrm_activity'
]
}
.source_contact_id = civicrm_contact_source.id
LEFT JOIN civicrm_contact contact_civireport
ON
{
$this
->
_aliases
[
'civicrm_activity_target'
]
}
.
target_
contact_id = contact_civireport.id
ON
{
$this
->
_aliases
[
'civicrm_activity_target'
]
}
.contact_id = contact_civireport.id
LEFT JOIN civicrm_contact civicrm_contact_assignee
ON
{
$this
->
_aliases
[
'civicrm_activity_assignment'
]
}
.
assignee_
contact_id = civicrm_contact_assignee.id
ON
{
$this
->
_aliases
[
'civicrm_activity_assignment'
]
}
.contact_id = civicrm_contact_assignee.id
{
$this
->
_aclFrom
}
LEFT JOIN civicrm_option_value
...
...
@@ -508,10 +509,10 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
$onHover
=
ts
(
'View Contact Summary for this Contact'
);
$onHoverAct
=
ts
(
'View Activity Record'
);
}
foreach
(
$rows
as
$rowNum
=>
$row
)
{
foreach
(
$rows
as
$rowNum
=>
$row
)
{
if
(
array_key_exists
(
'civicrm_contact_contact_source'
,
$row
))
{
if
(
$value
=
$row
[
'civicrm_activity_
source
_contact_id'
])
{
if
(
$value
=
$row
[
'civicrm_activity_
assignment
_contact_id'
])
{
if
(
$viewLinks
)
{
$url
=
CRM_Utils_System
::
url
(
"civicrm/contact/view"
,
'reset=1&cid='
.
$value
,
...
...
@@ -526,7 +527,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
if
(
array_key_exists
(
'civicrm_contact_contact_assignee'
,
$row
))
{
$assigneeNames
=
explode
(
$seperator
,
$row
[
'civicrm_contact_contact_assignee'
]);
if
(
$value
=
$row
[
'civicrm_activity_assignment_
assignee_
contact_id'
])
{
if
(
$value
=
$row
[
'civicrm_activity_assignment_contact_id'
])
{
$assigneeContactIds
=
explode
(
$seperator
,
$value
);
$link
=
array
();
if
(
$viewLinks
)
{
...
...
@@ -545,7 +546,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
if
(
array_key_exists
(
'civicrm_contact_contact_target'
,
$row
))
{
$targetNames
=
explode
(
$seperator
,
$row
[
'civicrm_contact_contact_target'
]);
if
(
$value
=
$row
[
'civicrm_activity_target_
target_
contact_id'
])
{
if
(
$value
=
$row
[
'civicrm_activity_target_contact_id'
])
{
$targetContactIds
=
explode
(
$seperator
,
$value
);
$link
=
array
();
if
(
$viewLinks
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment