mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-21 10:41:22 +00:00
Fix #2526
This commit is contained in:
@@ -197,6 +197,9 @@ class BelongsUser implements Rule
|
|||||||
*/
|
*/
|
||||||
private function validateBudgetId(int $value): bool
|
private function validateBudgetId(int $value): bool
|
||||||
{
|
{
|
||||||
|
if (0 === $value) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
$count = Budget::where('id', '=', $value)->where('user_id', '=', auth()->user()->id)->count();
|
$count = Budget::where('id', '=', $value)->where('user_id', '=', auth()->user()->id)->count();
|
||||||
|
|
||||||
return 1 === $count;
|
return 1 === $count;
|
||||||
|
|||||||
2
public/v1/js/app.js
vendored
2
public/v1/js/app.js
vendored
File diff suppressed because one or more lines are too long
@@ -570,9 +570,8 @@
|
|||||||
currentArray.foreign_currency_id = foreignCurrency;
|
currentArray.foreign_currency_id = foreignCurrency;
|
||||||
}
|
}
|
||||||
// set budget id and piggy ID.
|
// set budget id and piggy ID.
|
||||||
if (parseInt(row.budget) > 0) {
|
|
||||||
currentArray.budget_id = parseInt(row.budget);
|
currentArray.budget_id = parseInt(row.budget);
|
||||||
}
|
|
||||||
if (parseInt(row.piggy_bank) > 0) {
|
if (parseInt(row.piggy_bank) > 0) {
|
||||||
currentArray.piggy_bank_id = parseInt(row.piggy_bank);
|
currentArray.piggy_bank_id = parseInt(row.piggy_bank);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user