mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 09:26:29 -06:00
Fix missing key.
This commit is contained in:
parent
c34a00b3f3
commit
6b279398b3
@ -338,7 +338,7 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface
|
||||
{
|
||||
$budgetLimit->amount = $data['amount'] ?? $budgetLimit->amount;
|
||||
$budgetLimit->budget_id = $data['budget_id'] ?? $budgetLimit->id;
|
||||
$budgetLimit->budget_id = $data['budget'] ? $data['budget']->id : $budgetLimit->budget_id;
|
||||
$budgetLimit->budget_id = array_key_exists('budget_id', $data) ? $data['budget_id']->id : $budgetLimit->budget_id;
|
||||
$budgetLimit->start_date = $data['start'] ? $data['start']->format('Y-m-d 00:00:00') : $budgetLimit->start_date;
|
||||
$budgetLimit->end_date = $data['end'] ? $data['end']->format('Y-m-d 00:00:00') : $budgetLimit->end_date;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user