Skip to content

Commit

Permalink
oprava počtu dospělých (#906)
Browse files Browse the repository at this point in the history
Co-authored-by: bojovyletoun <>
  • Loading branch information
bojovyletoun authored and jan-stanek committed Apr 5, 2023
1 parent 87bdb54 commit 8a2d8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/AdminModule/Components/GroupsGridControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function createComponentPatrolsGrid(string $name): DataGrid

$grid->addColumnText('numAdults', '# dospělých')
// ->setSortableCallback(static fn($qb,$vals) =>sort($vals))
->setRenderer(static fn (Troop $p) => $p->countUsersInRoles([Role::LEADER]));
->setRenderer(static fn (Troop $p) => $p->countUsersInRoles([Role::LEADER, Role::ESCORT]));

$grid->addColumnText('numPatrols', '# družin')
// ->setSortableCallback(static fn($qb,$vals) =>sort($vals))
Expand Down

0 comments on commit 8a2d8a0

Please sign in to comment.