mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 14:48:54 +08:00
Null positions refer to secondary tags
This commit is contained in:
parent
550a04df83
commit
5291c969a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user