mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Various code cleanup [skip ci]
This commit is contained in:
@@ -217,6 +217,7 @@ trait TransactionServiceTrait
|
||||
{
|
||||
if (is_null($budget)) {
|
||||
$transaction->budgets()->sync([]);
|
||||
|
||||
return;
|
||||
}
|
||||
$transaction->budgets()->sync([$budget->id]);
|
||||
@@ -233,6 +234,7 @@ trait TransactionServiceTrait
|
||||
{
|
||||
if (is_null($category)) {
|
||||
$transaction->categories()->sync([]);
|
||||
|
||||
return;
|
||||
}
|
||||
$transaction->categories()->sync([$category->id]);
|
||||
@@ -260,6 +262,7 @@ trait TransactionServiceTrait
|
||||
if (is_null($currency)) {
|
||||
$transaction->foreign_currency_id = null;
|
||||
$transaction->save();
|
||||
|
||||
return;
|
||||
}
|
||||
$transaction->foreign_currency_id = $currency->id;
|
||||
|
Reference in New Issue
Block a user