James Cole
2023-07-29 06:17:09 +02:00
parent 298c4ec654
commit 1a1b0ee27d

View File

@@ -493,10 +493,11 @@ trait JournalServiceTrait
if ('' !== $string) {
$tag = $this->tagFactory->findOrCreate($string);
if (null !== $tag) {
$set[] = $tag->id;
$set[] = (int)$tag->id;
}
}
}
$set = array_unique($set);
Log::debug('End of loop.');
Log::debug(sprintf('Total nr. of tags: %d', count($tags)), $tags);
$journal->tags()->sync($set);