More cleanup [skip ci]

This commit is contained in:
James Cole
2015-02-01 09:08:39 +01:00
parent c2d2eb53e8
commit 6873336aca
4 changed files with 24 additions and 53 deletions

View File

@@ -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) {