diff --git a/app/Http/Controllers/BudgetController.php b/app/Http/Controllers/BudgetController.php
index 5451b8050c..e99ba0530e 100644
--- a/app/Http/Controllers/BudgetController.php
+++ b/app/Http/Controllers/BudgetController.php
@@ -221,12 +221,11 @@ class BudgetController extends Controller
}
- $budgetMaximum = Preferences::get('budgetMaximum', 1000)->data;
$defaultCurrency = Amount::getDefaultCurrency();
return view(
'budgets.index', compact(
- 'budgetMaximum', 'periodStart', 'periodEnd',
+ 'periodStart', 'periodEnd',
'period', 'range', 'budgetIncomeTotal',
'defaultCurrency', 'inactive', 'budgets',
'spent', 'budgeted'
diff --git a/app/Http/Controllers/PreferencesController.php b/app/Http/Controllers/PreferencesController.php
index 8db5d91e08..4347755d79 100644
--- a/app/Http/Controllers/PreferencesController.php
+++ b/app/Http/Controllers/PreferencesController.php
@@ -79,9 +79,7 @@ class PreferencesController extends Controller
$viewRangePref = Preferences::get('viewRange', '1M');
$viewRange = $viewRangePref->data;
$frontPageAccounts = Preferences::get('frontPageAccounts', []);
- $budgetMax = Preferences::get('budgetMaximum', 1000);
$language = Preferences::get('language', env('DEFAULT_LANGUAGE', 'en_US'))->data;
- $budgetMaximum = $budgetMax->data;
$transactionPageSize = Preferences::get('transactionPageSize', 50)->data;
$customFiscalYear = Preferences::get('customFiscalYear', 0)->data;
$fiscalYearStartStr = Preferences::get('fiscalYearStart', '01-01')->data;
@@ -93,7 +91,7 @@ class PreferencesController extends Controller
return view(
'preferences.index',
compact(
- 'budgetMaximum', 'language', 'accounts', 'frontPageAccounts',
+ 'language', 'accounts', 'frontPageAccounts',
'viewRange', 'customFiscalYear', 'transactionPageSize', 'fiscalYearStart', 'is2faEnabled',
'has2faSecret', 'showIncomplete'
)
@@ -137,10 +135,6 @@ class PreferencesController extends Controller
Session::forget('end');
Session::forget('range');
- // budget maximum:
- $budgetMaximum = intval(Input::get('budgetMaximum'));
- Preferences::set('budgetMaximum', $budgetMaximum);
-
// custom fiscal year
$customFiscalYear = intval(Input::get('customFiscalYear')) === 1;
$fiscalYearStart = date('m-d', strtotime(Input::get('fiscalYearStart')));
diff --git a/resources/views/budgets/index.twig b/resources/views/budgets/index.twig
index f01b14b0d2..e3b0f4ba0c 100644
--- a/resources/views/budgets/index.twig
+++ b/resources/views/budgets/index.twig
@@ -125,7 +125,7 @@
+ step="1" min="0" name="amount" type="number">