Skip to content
Snippets Groups Projects
Commit f1277ef9 authored by Maksym.Fedorchuk's avatar Maksym.Fedorchuk Committed by Taras Kruts
Browse files

Issue #3386056: Add compatibility with Drupal 10

parent 198ed442
No related branches found
No related tags found
No related merge requests found
name: 'KPI Analytics'
type: module
description: 'KPI Analytics architecture used in the Open Social Drupal distribution.'
core_version_requirement: ^9
core_version_requirement: ^9 || ^10
package: Social
php: 8.0
dependencies:
......
......@@ -48,6 +48,7 @@ class MorrisTagFollowGraphKPIVisualization extends KPIVisualizationBase {
$new_followers = 0;
if (!empty($tids)) {
$flags = $flagging_storage->getAggregateQuery()
->accessCheck(TRUE)
->condition('entity_id', $tids, 'IN')
->condition('entity_type', 'taxonomy_term')
->groupBy('uid')
......@@ -55,6 +56,7 @@ class MorrisTagFollowGraphKPIVisualization extends KPIVisualizationBase {
->execute();
$new_followers = $flagging_storage->getAggregateQuery()
->accessCheck(TRUE)
->condition('entity_id', $tids, 'IN')
->condition('entity_type', 'taxonomy_term')
->condition('created', strtotime('first day of this month'), '>=')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment