Skip to content

Firefly III: a personal finances manager

Fix https://github.com/firefly-iii/firefly-iii/issues/12662

James Cole2e1ea9d38ccb
diff --git a/app/Helpers/Collector/GroupCollector.php b/app/Helpers/Collector/GroupCollector.php
index be73ce8f4a..300dca2863 100644
--- a/app/Helpers/Collector/GroupCollector.php
+++ b/app/Helpers/Collector/GroupCollector.php
@@ -455,6 +455,11 @@ class GroupCollector implements GroupCollectorInterface
// filter the array using all available post filters:
$collection = $this->postFilterCollection($collection);
+ // recount the collection
+ if (count($this->postFilters) > 0) {
+ $this->total = $collection->count();
+ }
+
// sort the collection, if sort instructions are present.
$collection = $this->sortCollection($collection);