Skip to content

Some Antlers logic not working combining modifiers #2722

@robdekort

Description

@robdekort

Bug Description

I've got an antlers statements that I feel should work but doesn't. I ended up making a custom modifier.

{{ if pin:event_date|is_today || pin:event_date|is_future }}
{{ if (pin:event_date|is_today) || (pin:event_date|is_future) }}

pin is an entries field with max_items: 1.

How to Reproduce

  1. Give a blueprint a field called event_date.
  2. Use the entries field to add events to a page for example.
  3. Loop through the entries.
  4. Use the above logic in your template.

Extra Detail

Screenshot 2020-10-23 at 16 03 20

Environment

Statamic 3.0.20 Pro
Laravel 7.28.4
PHP 7.4.10
edalzell/mailchimp 2.1
jonassiewertsen/statamic-livewire 2.1.1

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