Skip to content

Commit

Permalink
chore: show charts with correct data
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Jan 14, 2021
1 parent 24c78b9 commit 597756e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion views/default/entity_view_counter/stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
return;
}

if ($get_count(['annotation_created_after' => strtotime('today -180 days')]) > 1) {
if ($get_count(['annotation_created_after' => strtotime('today -180 days')]) > 10) {
echo elgg_view('advanced_statistics/elements/chart', [
'title' => elgg_echo('entity_view_counter:stats:chart:recent'),
'id' => 'entity-view-counter-activity-recent',
Expand Down
2 changes: 2 additions & 0 deletions views/json/advanced_statistics/entity_view_counter/recent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

use Elgg\Database\Select;

$entity = elgg_extract('entity', $vars);

$result = [
'options' => advanced_statistics_get_default_chart_options('date'),
];
Expand Down

0 comments on commit 597756e

Please sign in to comment.