Fixed a bug where an update to a transaction journal would trigger the wrong response.

This commit is contained in:
James Cole 2014-12-21 18:43:01 +01:00
parent a94e0bb3da
commit 50be39b054

View File

@ -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]);
}
}
}