Fixed tags being able to relate to themselves

This commit is contained in:
Marcin Kurczewski 2014-10-18 14:25:18 +02:00
parent 85ed59d169
commit 7939aa5431

View file

@ -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));
}
}