mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Higher amounts.
This commit is contained in:
@@ -157,8 +157,8 @@ class BudgetLimitController extends Controller
|
||||
// return empty=ish array:
|
||||
return response()->json([]);
|
||||
}
|
||||
if ((int) $amount > 16777216) {
|
||||
$amount = '16777216';
|
||||
if ((int) $amount > 268435456) {
|
||||
$amount = '268435456';
|
||||
}
|
||||
|
||||
if (null !== $limit) {
|
||||
@@ -223,8 +223,8 @@ class BudgetLimitController extends Controller
|
||||
];
|
||||
return response()->json($array);
|
||||
}
|
||||
if ((int) $amount > 16777216) { // 16 million
|
||||
$amount = '16777216';
|
||||
if ((int) $amount > 268435456) { // 268 million
|
||||
$amount = '268435456';
|
||||
}
|
||||
|
||||
$limit = $this->blRepository->update($budgetLimit, ['amount' => $amount]);
|
||||
|
@@ -67,7 +67,7 @@ trait ValidatesAutoBudgetRequest
|
||||
$validator->errors()->add('auto_budget_amount', (string) trans('validation.require_currency_info'));
|
||||
}
|
||||
// too big amount
|
||||
if((int)$amount > 16777216) {
|
||||
if((int)$amount > 268435456) {
|
||||
$validator->errors()->add('auto_budget_amount', (string) trans('validation.amount_required_for_auto_budget'));
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user