Bug fix in budget search

This commit is contained in:
James Cole
2019-05-24 05:28:41 +02:00
parent 6e9128d894
commit 695244c928
3 changed files with 226 additions and 222 deletions

View File

@@ -23,7 +23,6 @@ declare(strict_types=1);
namespace FireflyIII\Factory;
use Exception;
use FireflyIII\Exceptions\FireflyException;
use FireflyIII\Models\TransactionGroup;
use FireflyIII\Models\TransactionJournal;
@@ -60,6 +59,7 @@ class TransactionGroupFactory
$this->journalFactory->setUser($this->user);
$collection = $this->journalFactory->create($data);
$title = $data['group_title'] ?? null;
$title = $title === '' ? null : $title;
/** @var TransactionJournal $first */
$first = $collection->first();
$group = new TransactionGroup;