Skip to content

Commit

Permalink
Bug fix: Number of Groups in Group list doesn't match with Groups cou…
Browse files Browse the repository at this point in the history
…nt in Dashboard
  • Loading branch information
bigtigerku committed Sep 27, 2024
1 parent 078fb67 commit e12f7b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
13 changes: 1 addition & 12 deletions src/GroupList.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,7 @@
</div>

<script src="skin/js/GroupList.js"></script>
<script nonce="<?= SystemURLs::getCSPNonce() ?>">
$( document).ready(function() {
var gS = localStorage.getItem("groupSelect");
if (gS != null)
{
tf = document.getElementById("table-filter");
tf.selectedIndex = gS;
<script nonce="<?= SystemURLs::getCSPNonce() ?>"></script>

window.groupSelect = tf.value;
}
});

</script>
<?php
require 'Include/Footer.php';
2 changes: 1 addition & 1 deletion src/PeopleDashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
<div class="small-box bg-red">
<div class="inner">
<h3>
<?= $groupStats['groups'] - $groupStats['sundaySchoolClasses'] ?>
<?= $groupStats['groups'] ?>
</h3>

<p>
Expand Down
1 change: 0 additions & 1 deletion src/v2/routes/root.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ function viewDashboard(Request $request, Response $response, array $args): Respo
->count();

$dashboardCounts['Groups'] = GroupQuery::create()
->filterByType(4, Criteria::NOT_EQUAL)
->count();

$dashboardCounts['events'] = EventAttendQuery::create()
Expand Down

0 comments on commit e12f7b2

Please sign in to comment.