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