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
5a1bd70b
Commit
5a1bd70b
authored
12 years ago
by
yashodha
Browse files
Options
Downloads
Patches
Plain Diff
CRM-12274
parent
997f6c5c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Case/XMLProcessor/Report.php
+3
-3
3 additions, 3 deletions
CRM/Case/XMLProcessor/Report.php
CRM/Logging/Differ.php
+4
-3
4 additions, 3 deletions
CRM/Logging/Differ.php
with
7 additions
and
6 deletions
CRM/Case/XMLProcessor/Report.php
+
3
−
3
View file @
5a1bd70b
...
...
@@ -234,12 +234,12 @@ AND ac.case_id = %1
}
$query
=
"
SELECT a.*, aa.
assignee_
contact_id as assigneeID, at.
target_
contact_id as targetID
SELECT a.*, aa.contact_id as assigneeID, at.contact_id as targetID
{
$selectCaseActivity
}
FROM civicrm_activity a
{
$joinCaseActivity
}
LEFT JOIN civicrm_activity_
targe
t at ON a.id = at.activity_id
LEFT JOIN civicrm_activity_
assignmen
t aa ON a.id = aa.activity_id
LEFT JOIN civicrm_activity_
contac
t at ON a.id = at.activity_id
AND at.record_type = 'Target'
LEFT JOIN civicrm_activity_
contac
t aa ON a.id = aa.activity_id
AND aa.record_type = 'Assignee'
WHERE a.id = %1
"
;
$params
=
array
(
1
=>
array
(
$activityID
,
'Integer'
));
...
...
This diff is collapsed.
Click to expand it.
CRM/Logging/Differ.php
+
4
−
3
View file @
5a1bd70b
...
...
@@ -83,9 +83,9 @@ class CRM_Logging_Differ {
break
;
case
'civicrm_activity'
:
$join
=
"
LEFT JOIN civicrm_activity_
targe
t at ON at.activity_id = lt.id
AND at.
target_
contact_id = %3
LEFT JOIN civicrm_activity_
assignmen
t aa ON aa.activity_id = lt.id AND aa.
assignee_
contact_id = %3
LEFT JOIN civicrm_activity source ON source.id = lt.id
AND source.
source_
contact_id = %3"
;
LEFT JOIN civicrm_activity_
contac
t at ON at.activity_id = lt.id AND at.contact_id = %3
AND at.record_type = 'Target'
LEFT JOIN civicrm_activity_
contac
t aa ON aa.activity_id = lt.id AND aa.contact_id = %3
AND aa.record_type = 'Assignee'
LEFT JOIN civicrm_activity
_contact
source ON source.
activity_
id = lt.id AND source.contact_id = %3
AND source.record_type = 'Source'
"
;
$contactIdClause
=
"AND (at.id IS NOT NULL OR aa.id IS NOT NULL OR source.id IS NOT NULL)"
;
break
;
case
'civicrm_case'
:
...
...
@@ -106,6 +106,7 @@ SELECT DISTINCT lt.id FROM `{$this->db}`.`log_$table` lt
WHERE log_conn_id = %1 AND
log_date BETWEEN DATE_SUB(%2, INTERVAL
{
$this
->
interval
}
) AND DATE_ADD(%2, INTERVAL
{
$this
->
interval
}
)
{
$contactIdClause
}
"
;
$dao
=
CRM_Core_DAO
::
executeQuery
(
$sql
,
$params
);
while
(
$dao
->
fetch
())
{
$diffs
=
array_merge
(
$diffs
,
$this
->
diffsInTableForId
(
$table
,
$dao
->
id
));
...
...
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