mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Merge branch 'develop' into 5.8-dev
# Conflicts: # composer.lock # config/firefly.php # public/v1/js/create_transaction.js # public/v1/js/edit_transaction.js # public/v1/js/profile.js # resources/assets/js/locales/pt-br.json # resources/lang/pt_BR/firefly.php # yarn.lock
This commit is contained in:
@@ -160,6 +160,9 @@ class BudgetLimitController extends Controller
|
||||
if ((int) $amount > 268435456) {
|
||||
$amount = '268435456';
|
||||
}
|
||||
if((float) $amount < 0.0) {
|
||||
$amount = bcmul($amount, '-1');
|
||||
}
|
||||
|
||||
if (null !== $limit) {
|
||||
$limit->amount = $amount;
|
||||
@@ -226,6 +229,9 @@ class BudgetLimitController extends Controller
|
||||
if ((int) $amount > 268435456) { // 268 million
|
||||
$amount = '268435456';
|
||||
}
|
||||
if((float) $amount < 0.0) {
|
||||
$amount = bcmul($amount, '-1');
|
||||
}
|
||||
|
||||
$limit = $this->blRepository->update($budgetLimit, ['amount' => $amount]);
|
||||
$array = $limit->toArray();
|
||||
|
||||
Reference in New Issue
Block a user