Null positions refer to secondary tags

This commit is contained in:
SychO9 2020-12-24 17:56:33 +01:00 committed by Alexander Skvortsov
parent 550a04df83
commit 5291c969a4

View File

@ -212,7 +212,7 @@ class Tag extends AbstractModel
$can = $canForTag($tag->parent);
}
$isPrimary = $tag->position === null && ! $tag->parent;
$isPrimary = $tag->position !== null && ! $tag->parent;
if ($can === $condition && ($includePrimary && $isPrimary || $includeSecondary && ! $isPrimary)) {
$ids[] = $tag->id;