Skip to content
Snippets Groups Projects
Commit 4f53db5a authored by lobo's avatar lobo
Browse files

CRM-12466 - tweak function names, debug and check query logs

----------------------------------------
* CRM-12466: Group listings don't load
  http://issues.civicrm.org/jira/browse/CRM-12466
parent abdb2607
No related branches found
No related tags found
No related merge requests found
......@@ -101,10 +101,11 @@ AND ( g.cache_date IS NULL OR
* @static
* @public
*/
static function isGroupRefreshed($groupID, $includeHiddenGroups = FALSE) {
static function shouldGroupBeRefreshed($groupID, $includeHiddenGroups = FALSE) {
$query = self::groupRefreshedClause("g.id = %1", $includeHiddenGroups);
$params = array(1 => array($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);
}
......@@ -385,7 +386,7 @@ WHERE id = %1
// we allow hidden groups here since we dont know if the caller wants to evaluate an
// hidden group
// note that we ignore the force option in this case and rely on someone else having done it
if (self::isGroupRefreshed($groupID, FALSE, TRUE)) {
if (! self::shouldGroupBeRefreshed($groupID, FALSE, TRUE)) {
$lock->release();
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment