statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

taxonomy:tags:all not working #2450

Open goellner opened 4 years ago

goellner commented 4 years ago

Describe the bug {{ collection:blog taxonomy:tags:all="foo|bar" }} throws an error:

FatalThrowableError in CollectionTags.php line 284:
Call to a member function diff() on array

To Reproduce Steps to reproduce the behavior:

  1. Use {{ collection:blog taxonomy:tags:all="foo|bar" }}
  2. See error

Expected behavior Output entries tagged with both foo and bar.

edalzell commented 4 years ago

@goellner did you ever find a workaround or a patch?

edalzell commented 4 years ago

Patch:

image