Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix viewrange.
James Colea78b3065e60b
diff --git a/app/Http/Controllers/Transaction/IndexController.php b/app/Http/Controllers/Transaction/IndexController.phpindex 93161e4576..c5bcb5d646 100644--- a/app/Http/Controllers/Transaction/IndexController.php+++ b/app/Http/Controllers/Transaction/IndexController.php@@ -30,6 +30,7 @@ use FireflyIII\Helpers\Collector\GroupCollectorInterface;use FireflyIII\Http\Controllers\Controller;use FireflyIII\Models\TransactionJournal;use FireflyIII\Repositories\Journal\JournalRepositoryInterface;+use FireflyIII\Support\Facades\Navigation;use FireflyIII\Support\Facades\Preferences;use FireflyIII\Support\Http\Controllers\PeriodOverview;use Illuminate\Contracts\View\Factory;@@ -86,8 +87,9 @@ final class IndexController extends Controller$pageSize = (int) Preferences::get('listPageSize', 50)->data;if (!$start instanceof Carbon) {- $start = session('start');- $end = session('end');+ $viewRange = Navigation::getViewRange(true);+ $start = Navigation::startOfPeriod(today(), $viewRange);+ $end = Navigation::endOfPeriod($start, $viewRange);}if (null === $end) {// get last transaction ever?