Fixed tags being able to relate to themselves
This commit is contained in:
parent
85ed59d169
commit
7939aa5431
1 changed files with 2 additions and 0 deletions
|
@ -178,11 +178,13 @@ class TagService
|
|||
|
||||
private function updateImplications(Tag $tag, array $relatedNames)
|
||||
{
|
||||
$relatedNames = array_udiff($relatedNames, [$tag->getName()], 'strnatcasecmp');
|
||||
$tag->setImpliedTags($this->createTags($relatedNames));
|
||||
}
|
||||
|
||||
private function updateSuggestions(Tag $tag, array $relatedNames)
|
||||
{
|
||||
$relatedNames = array_udiff($relatedNames, [$tag->getName()], 'strnatcasecmp');
|
||||
$tag->setSuggestedTags($this->createTags($relatedNames));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue