Thanks to visit codestin.com
Credit goes to github.com

Skip to content

{{ if {collection:count in="collection_name" taxonomy:year="2019"} > 0}} throws an error when taxonomy condition is added #1945

@Krzemo

Description

@Krzemo

Bug Description

When a taxonomy condition is added to collection:count based "if" statment i.e.: {{ if {collection:count in="collection_name" taxonomy:year="2019"} > 0}} an error is thrown:
image
image

It happens both if filtered collection has entries or not.

How to Reproduce

Try to check it there are entries in collection with count and taxonomy filter added.
image

Extra Detail

When taxonomy filter is removed - everything works fine.
image

Environment

MacOs 10.4.16, Valet, PHP 7.3.18

Statamic version: 3.0.0.-beta-31

PHP version: 7.3.18

Install method (choose one):

  • Fresh install from statamic/statamic

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions