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
3f276863
Unverified
Commit
3f276863
authored
3 years ago
by
Eileen McNaughton
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #20456 from eileenmcnaughton/group2
[Ref] remove never-passed param
parents
0a5e0d24
cb09fd1c
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Contact/BAO/GroupContactCache.php
+4
-7
4 additions, 7 deletions
CRM/Contact/BAO/GroupContactCache.php
with
4 additions
and
7 deletions
CRM/Contact/BAO/GroupContactCache.php
+
4
−
7
View file @
3f276863
...
...
@@ -99,18 +99,15 @@ AND (
*
* @param int $groupID
* The group ID.
* @param bool $includeHiddenGroups
* Hidden groups are excluded by default.
*
* @return string
* the sql query which lists the groups that need to be refreshed
* @return bool
*/
public
static
function
shouldGroupBeRefreshed
(
$groupID
,
$includeHiddenGroups
=
FALSE
)
{
$query
=
self
::
groupRefreshedClause
(
"
g.id = %1
"
,
$includeHiddenGroups
);
public
static
function
shouldGroupBeRefreshed
(
$groupID
):
bool
{
$query
=
self
::
groupRefreshedClause
(
'
g.id = %1
'
);
$params
=
[
1
=>
[
$groupID
,
'Integer'
]];
// if the query returns the group ID, it means the group is a valid candidate for refreshing
return
CRM_Core_DAO
::
singleValueQuery
(
$query
,
$params
);
return
(
bool
)
CRM_Core_DAO
::
singleValueQuery
(
$query
,
$params
);
}
/**
...
...
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