mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-16 18:25:00 -06:00
Fixed a bug where an update to a transaction journal would trigger the wrong response.
This commit is contained in:
parent
a94e0bb3da
commit
50be39b054
@ -387,7 +387,7 @@ class TransactionJournal implements TransactionJournalInterface, CUD, CommonData
|
||||
$categoryRepository = \App::make('FireflyIII\Database\Category\Category');
|
||||
$category = $categoryRepository->firstOrCreate($data['category']);
|
||||
if ($category) {
|
||||
$journal->categories()->save($category);
|
||||
$journal->categories()->sync([$category->id]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user