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
7fb7d6b5
Unverified
Commit
7fb7d6b5
authored
3 years ago
by
Eileen McNaughton
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #21371 from eileenmcnaughton/depre
Remove unused private function
parents
50991431
762f34e7
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/Mailing/BAO/Mailing.php
+0
-33
0 additions, 33 deletions
CRM/Mailing/BAO/Mailing.php
with
0 additions
and
33 deletions
CRM/Mailing/BAO/Mailing.php
+
0
−
33
View file @
7fb7d6b5
...
...
@@ -449,39 +449,6 @@ class CRM_Mailing_BAO_Mailing extends CRM_Mailing_DAO_Mailing {
return
[
$location_filter
,
$orderBy
];
}
/**
* @param string $type
*
* @return array
*/
private
function
_getMailingGroupIds
(
$type
=
'Include'
)
{
$mailingGroup
=
new
CRM_Mailing_DAO_MailingGroup
();
$group
=
CRM_Contact_DAO_Group
::
getTableName
();
if
(
!
isset
(
$this
->
id
))
{
// we're just testing tokens, so return any group
$query
=
"SELECT id AS entity_id
FROM
$group
ORDER BY id
LIMIT 1"
;
}
else
{
$mg
=
CRM_Mailing_DAO_MailingGroup
::
getTableName
();
$query
=
"SELECT entity_id
FROM
$mg
WHERE mailing_id =
{
$this
->
id
}
AND group_type = '
$type
'
AND entity_table = '
$group
'"
;
}
$mailingGroup
->
query
(
$query
);
$groupIds
=
[];
while
(
$mailingGroup
->
fetch
())
{
$groupIds
[]
=
$mailingGroup
->
entity_id
;
}
return
$groupIds
;
}
/**
* Returns the regex patterns that are used for preparing the text and html templates.
*
...
...
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