Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix custom range thing for accounts #1240 [skip ci]
James Coleeb630903871b
diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.phpindex 299b32e385..eb0a2b89d0 100644--- a/app/Http/Controllers/AccountController.php+++ b/app/Http/Controllers/AccountController.php@@ -293,12 +293,11 @@ class AccountController extends Controllerif (AccountType::INITIAL_BALANCE === $account->accountType->type) {return $this->redirectToOriginalAccount($account);}- $range = Preferences::get('viewRange', '1M')->data;if (null === $start) {$start = session('start');}if (null === $end) {- $end = app('navigation')->endOfPeriod($start, $range);+ $end = session('end');}if ($end < $start) {throw new FireflyException('End is after start!'); // @codeCoverageIgnore