mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
This commit is contained in:
@@ -493,10 +493,11 @@ trait JournalServiceTrait
|
|||||||
if ('' !== $string) {
|
if ('' !== $string) {
|
||||||
$tag = $this->tagFactory->findOrCreate($string);
|
$tag = $this->tagFactory->findOrCreate($string);
|
||||||
if (null !== $tag) {
|
if (null !== $tag) {
|
||||||
$set[] = $tag->id;
|
$set[] = (int)$tag->id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$set = array_unique($set);
|
||||||
Log::debug('End of loop.');
|
Log::debug('End of loop.');
|
||||||
Log::debug(sprintf('Total nr. of tags: %d', count($tags)), $tags);
|
Log::debug(sprintf('Total nr. of tags: %d', count($tags)), $tags);
|
||||||
$journal->tags()->sync($set);
|
$journal->tags()->sync($set);
|
||||||
|
Reference in New Issue
Block a user