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
00b1b9f1
Commit
00b1b9f1
authored
12 years ago
by
yashodha
Committed by
lobo
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
reminder fixes for CRM-12274
parent
a47a2f90
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/BAO/ActionSchedule.php
+5
-6
5 additions, 6 deletions
CRM/Core/BAO/ActionSchedule.php
with
5 additions
and
6 deletions
CRM/Core/BAO/ActionSchedule.php
+
5
−
6
View file @
00b1b9f1
...
...
@@ -750,20 +750,19 @@ WHERE reminder.action_schedule_id = %1 AND reminder.action_date_time IS NULL
$from
=
"
{
$mapping
->
entity
}
e"
;
if
(
$mapping
->
entity
==
'civicrm_activity'
)
{
$contactField
=
'r.contact_id'
;
switch
(
CRM_Utils_Array
::
value
(
$actionSchedule
->
recipient
,
$recipientOptions
))
{
case
'Activity Assignees'
:
$contactField
=
'r.assignee_contact_id'
;
$join
[]
=
'INNER JOIN civicrm_activity_assignment r ON r.activity_id = e.id'
;
$join
[]
=
"INNER JOIN civicrm_activity_contact r ON r.activity_id = e.id AND record_type = 'Assignee'"
;
break
;
case
'Activity Source'
:
$
contactFiel
d
=
'
e.
source_contact_id'
;
$
join
[]
=
"INNER JOIN civicrm_activity_contact r ON r.activity_i
d = e.
id AND record_type = 'Source'"
;
break
;
default
:
case
'Activity Targets'
:
$contactField
=
'r.target_contact_id'
;
$join
[]
=
'INNER JOIN civicrm_activity_target r ON r.activity_id = e.id'
;
$join
[]
=
"INNER JOIN civicrm_activity_contact r ON r.activity_id = e.id AND record_type = 'Target'"
;
break
;
}
...
...
@@ -905,7 +904,7 @@ INSERT INTO civicrm_action_log (contact_id, entity_id, entity_table, action_sche
{
$joinClause
}
LEFT JOIN
{
$reminderJoinClause
}
{
$whereClause
}
AND
{
$dateClause
}
{
$notINClause
}
"
;
CRM_Core_DAO
::
executeQuery
(
$query
,
array
(
1
=>
array
(
$actionSchedule
->
id
,
'Integer'
)));
// if repeat is turned ON:
...
...
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