mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 21:23:36 +00:00
More cleanup [skip ci]
This commit is contained in:
@@ -159,7 +159,7 @@ class TransactionJournal implements TransactionJournalInterface, CUDInterface, C
|
||||
$journal->isValid();
|
||||
$errors = $journal->getErrors();
|
||||
|
||||
if (!isset($model['what'])) {
|
||||
if (!isset($model['what']) && !isset($model['transaction_type_id'])) {
|
||||
$errors->add('description', 'Internal error: need to know type of transaction!');
|
||||
}
|
||||
if (strlen($model['description']) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user