mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
With no category, the transaction journal store procedure would fail.
This commit is contained in:
@@ -137,7 +137,7 @@ class TransactionJournal implements TransactionJournalInterface, CUD, CommonData
|
||||
$journal->budgets()->save($budget);
|
||||
}
|
||||
}
|
||||
if (strlen($data['category']) > 0) {
|
||||
if (isset($data['category']) && strlen($data['category']) > 0) {
|
||||
/** @var \FireflyIII\Database\Category $categoryRepository */
|
||||
$categoryRepository = \App::make('FireflyIII\Database\Category');
|
||||
$category = $categoryRepository->firstOrCreate($data['category']);
|
||||
|
Reference in New Issue
Block a user