mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
fix for #988
This commit is contained in:
@@ -138,6 +138,12 @@ class ImportRoutine
|
|||||||
private function createImportTag(): Tag
|
private function createImportTag(): Tag
|
||||||
{
|
{
|
||||||
Log::debug('Now in createImportTag()');
|
Log::debug('Now in createImportTag()');
|
||||||
|
|
||||||
|
if($this->journals->count() < 1) {
|
||||||
|
Log::info(sprintf('Will not create tag, %d journals imported.', $this->journals->count()));
|
||||||
|
return new Tag;
|
||||||
|
}
|
||||||
|
|
||||||
/** @var TagRepositoryInterface $repository */
|
/** @var TagRepositoryInterface $repository */
|
||||||
$repository = app(TagRepositoryInterface::class);
|
$repository = app(TagRepositoryInterface::class);
|
||||||
$repository->setUser($this->job->user);
|
$repository->setUser($this->job->user);
|
||||||
|
Reference in New Issue
Block a user