mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
All API routes seem to work.
This commit is contained in:
@@ -216,6 +216,7 @@ trait TransactionServiceTrait
|
||||
protected function setBudget(Transaction $transaction, ?Budget $budget): void
|
||||
{
|
||||
if (is_null($budget)) {
|
||||
$transaction->budgets()->sync([]);
|
||||
return;
|
||||
}
|
||||
$transaction->budgets()->sync([$budget->id]);
|
||||
@@ -231,6 +232,7 @@ trait TransactionServiceTrait
|
||||
protected function setCategory(Transaction $transaction, ?Category $category): void
|
||||
{
|
||||
if (is_null($category)) {
|
||||
$transaction->categories()->sync([]);
|
||||
return;
|
||||
}
|
||||
$transaction->categories()->sync([$category->id]);
|
||||
|
Reference in New Issue
Block a user