summaryrefslogtreecommitdiff
path: root/resources/views/lists/media-table.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/lists/media-table.phtml')
-rw-r--r--resources/views/lists/media-table.phtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/views/lists/media-table.phtml b/resources/views/lists/media-table.phtml
index cb04880d90..fc76753e64 100644
--- a/resources/views/lists/media-table.phtml
+++ b/resources/views/lists/media-table.phtml
@@ -30,7 +30,7 @@ $count_individuals = DB::table('individuals')
->where('l_type', '=', 'OBJE')
->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', '=', 'OBJE')
->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();
@@ -54,7 +54,7 @@ $count_sources = DB::table('sources')
->where('l_type', '=', 'OBJE')
->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();
?>