Skip to content

Commit

Permalink
Use correct method for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierbon committed Jun 26, 2019
1 parent 9164b98 commit 489507a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/twig/variables/FeedMeVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function getElementLayoutByField($type, $field)
$source = Craft::$app->sections->getEntryTypeById($section->id);
}
} else if ($type === 'craft\fields\Tags') {
$source = $this->getCategorySourcesByField($field) ?? null;
$source = $this->getTagSourcesByField($field) ?? null;
}

if (!$source || !$source->fieldLayoutId) {
Expand Down

0 comments on commit 489507a

Please sign in to comment.