Skip to content

Commit

Permalink
MBS-9395: Fix pagination on userstats table
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Garske committed Sep 26, 2024
1 parent d94af6e commit 1a84fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/local/userstats_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function __construct(
$where = 'u.' . $tenantfield . ' = :tenant GROUP BY u.id';
$params = ['tenant' => $tenant->get_sql_identifier()];
$this->set_count_sql(
"SELECT COUNT(DISTINCT id) FROM {user} WHERE " . $tenantfield . " = :tenant",
"SELECT COUNT(DISTINCT u.id) FROM $from WHERE u.$tenantfield = :tenant",
$params
);
}
Expand Down

0 comments on commit 1a84fd4

Please sign in to comment.