mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Fixed a bug where an update to a transaction journal would trigger the wrong response.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user