mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Final things.
This commit is contained in:
@@ -24,6 +24,7 @@ declare(strict_types=1);
|
||||
namespace FireflyIII\Factory;
|
||||
|
||||
use FireflyIII\Exceptions\DuplicateTransactionException;
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use FireflyIII\Models\TransactionGroup;
|
||||
use FireflyIII\User;
|
||||
use Log;
|
||||
@@ -74,6 +75,9 @@ class TransactionGroupFactory
|
||||
if (null !== $title) {
|
||||
$title = substr($title, 0, 1000);
|
||||
}
|
||||
if(0 === $collection->count()) {
|
||||
throw new FireflyException('Created zero transaction journals.');
|
||||
}
|
||||
|
||||
$group = new TransactionGroup;
|
||||
$group->user()->associate($this->user);
|
||||
|
Reference in New Issue
Block a user