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
e7a308ff
Commit
e7a308ff
authored
11 years ago
by
yashodha
Browse files
Options
Downloads
Patches
Plain Diff
CRM-12274
parent
5a1bd70b
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/Campaign/BAO/Query.php
+10
-9
10 additions, 9 deletions
CRM/Campaign/BAO/Query.php
with
10 additions
and
9 deletions
CRM/Campaign/BAO/Query.php
+
10
−
9
View file @
e7a308ff
...
...
@@ -95,7 +95,7 @@ class CRM_Campaign_BAO_Query {
//all below tables are require to fetch result.
//1. get survey activity target table in.
$query
->
_select
[
'survey_activity_target_contact_id'
]
=
'civicrm_activity_
contac
t.contact_id as survey_activity_target_contact_id'
;
$query
->
_select
[
'survey_activity_target_contact_id'
]
=
'civicrm_activity_
targe
t.contact_id as survey_activity_target_contact_id'
;
$query
->
_select
[
'survey_activity_target_id'
]
=
'civicrm_activity_target.id as survey_activity_target_id'
;
$query
->
_element
[
'survey_activity_target_id'
]
=
1
;
$query
->
_element
[
'survey_activity_target_contact_id'
]
=
1
;
...
...
@@ -158,10 +158,10 @@ class CRM_Campaign_BAO_Query {
$query
->
_qill
[
$grouping
][]
=
ts
(
'Survey - %1'
,
array
(
1
=>
CRM_Core_DAO
::
getFieldValue
(
'CRM_Campaign_DAO_Survey'
,
$value
,
'title'
)));
$query
->
_where
[
$grouping
][]
=
CRM_Contact_BAO_Query
::
buildClause
(
'civicrm_activity.source_record_id'
,
$op
,
$value
,
"
Integer
"
$op
,
$value
,
'
Integer
'
);
$query
->
_where
[
$grouping
][]
=
CRM_Contact_BAO_Query
::
buildClause
(
'civicrm_survey.id'
,
$op
,
$value
,
"
Integer
"
$op
,
$value
,
'
Integer
'
);
return
;
...
...
@@ -170,7 +170,7 @@ class CRM_Campaign_BAO_Query {
$query
->
_qill
[
$grouping
][]
=
ts
(
'Survey Status - %1'
,
array
(
1
=>
$activityStatus
[
$value
]));
$query
->
_where
[
$grouping
][]
=
CRM_Contact_BAO_Query
::
buildClause
(
'civicrm_activity.status_id'
,
$op
,
$value
,
"
Integer
"
$op
,
$value
,
'
Integer
'
);
return
;
...
...
@@ -189,8 +189,8 @@ class CRM_Campaign_BAO_Query {
}
}
$query
->
_qill
[
$grouping
][]
=
ts
(
'Survey Interviewer - %1'
,
array
(
1
=>
$surveyInterviewerName
));
$query
->
_where
[
$grouping
][]
=
CRM_Contact_BAO_Query
::
buildClause
(
'civicrm_activity_assignment.
assignee_
contact_id'
,
$op
,
$value
,
"
Integer
"
$query
->
_where
[
$grouping
][]
=
CRM_Contact_BAO_Query
::
buildClause
(
'civicrm_activity_assignment.contact_id'
,
$op
,
$value
,
'
Integer
'
);
return
;
}
...
...
@@ -206,8 +206,8 @@ class CRM_Campaign_BAO_Query {
switch
(
$name
)
{
case
self
::
CIVICRM_ACTIVITY_TARGET
:
$from
=
" INNER JOIN civicrm_activity_contact
ON ( civicrm_activity_
contac
t.contact_id = contact_a.id AND civicrm_activity_
contac
t.record_type = 'Target') "
;
$from
=
" INNER JOIN civicrm_activity_contact
civicrm_activity_target
ON ( civicrm_activity_
targe
t.contact_id = contact_a.id AND civicrm_activity_
targe
t.record_type = 'Target') "
;
break
;
case
self
::
CIVICRM_ACTIVITY
:
...
...
@@ -219,7 +219,8 @@ class CRM_Campaign_BAO_Query {
case
self
::
CIVICRM_ACTIVITY_ASSIGNMENT
:
$from
=
"
INNER JOIN civicrm_activity_assignment ON ( civicrm_activity.id = civicrm_activity_assignment.activity_id ) "
;
INNER JOIN civicrm_activity_contact civicrm_activity_assignment ON ( civicrm_activity.id = civicrm_activity_assignment.activity_id AND
civicrm_activity_assignment.record_type = 'Assignee' ) "
;
break
;
case
'civicrm_survey'
:
...
...
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