Skip to content

Instantly share code, notes, and snippets.

@pilif
Created November 20, 2020 09:46
Show Gist options
  • Save pilif/885cf10e05bcd3ce6f8aa827239a524c to your computer and use it in GitHub Desktop.
Save pilif/885cf10e05bcd3ce6f8aa827239a524c to your computer and use it in GitHub Desktop.
diff --git a/lib/catalog/tag_node.php b/lib/catalog/tag_node.php
index 2054e5faf1..6fc9cc182e 100644
--- a/lib/catalog/tag_node.php
+++ b/lib/catalog/tag_node.php
@@ -320,7 +320,7 @@ class TagNode extends RootParentedVirtualNode
/** @psalm-suppress PossiblyUnusedParam */
public function getProductFinderConstraints(bool $cascade): ?array
{
- return [$this->tag['tag_name'] => true, 'vendor' => $this->getVendor()->getId()];
+ return array_merge($this->getVendor()->getTagNodeConstraints(), ['vendor' => $this->getVendor()->getId()]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment