Skip to content

Firefly III: a personal finances manager

Fix issue with preferences object.

James Colea8e4fbb7b64a
diff --git a/app/Http/Controllers/PreferencesController.php b/app/Http/Controllers/PreferencesController.php
index be8226b255..9cf77680b1 100644
--- a/app/Http/Controllers/PreferencesController.php
+++ b/app/Http/Controllers/PreferencesController.php
@@ -96,9 +96,7 @@ class PreferencesController extends Controller
ksort($groupedAccounts);
$accountIds = $accounts->pluck('id')->toArray();
- $viewRangePref = app('navigation')->getViewRange(false);
-
- $viewRange = $viewRangePref->data;
+ $viewRange = app('navigation')->getViewRange(false);
$frontPageAccounts = app('preferences')->get('frontPageAccounts', $accountIds);
$language = app('steam')->getLanguage();
$languages = config('firefly.languages');