diff options
Diffstat (limited to 'resources/views/lists/locations-table.phtml')
| -rw-r--r-- | resources/views/lists/locations-table.phtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/views/lists/locations-table.phtml b/resources/views/lists/locations-table.phtml index 5133aab440..0910885db4 100644 --- a/resources/views/lists/locations-table.phtml +++ b/resources/views/lists/locations-table.phtml @@ -30,7 +30,7 @@ $count_individuals = DB::table('individuals') ->where('l_type', '=', '_LOC') ->where('l_file', '=', $tree->id()) ->groupBy(['l_to']) - ->pluck(new Expression('COUNT(*)'), 'l_to') + ->pluck(new Expression('COUNT(*) AS total'), 'l_to') ->map(static fn (string $n): int => (int) $n) ->all(); @@ -42,7 +42,7 @@ $count_families = DB::table('families') ->where('l_type', '=', '_LOC') ->where('l_file', '=', $tree->id()) ->groupBy(['l_to']) - ->pluck(new Expression('COUNT(*)'), 'l_to') + ->pluck(new Expression('COUNT(*) AS total'), 'l_to') ->map(static fn (string $n): int => (int) $n) ->all(); ?> |
