Skip to content

Commit a820e09

Browse files
committed
Fix bug in tag page service: do not require tag type to find tags
1 parent 4ae81ed commit a820e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/TagPageService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function hydrateModels(Collection $groupedIds, Tag $tag): Collection
100100

101101
// Load actual models with eager loading
102102
/** @var class-string $modelClass */
103-
$modelInstances = $modelClass::withAnyTags([$tag->name])
103+
$modelInstances = $modelClass::withAnyTagsOfAnyType([$tag->name])
104104
->whereIn('id', $ids)
105105
->when(method_exists($modelClass, 'scopePublished'), function ($query) {
106106
return $query->published();

0 commit comments

Comments
 (0)