Skip to content

Tag condition not respecting default value #15735

Open

Description

@robdekort

Bug description

I have a bunch of entries and I added a toggle to their blueprint. The default value for the toggle is true.

I use the following code:

{{ collection:my_collection my_toggle:is="true" }}

And none of the entries show up, they have to be explicitly saved with the new blueprint.

How to reproduce

  1. Create entries for some collection.
  2. Add a toggle field to the blueprint with a default of true (or perhaps some other field).
  3. Fetch the entries based on the default value of the field using the collection tag.
  4. See none of the entries show up.
  5. Save entries.
  6. See the entries show up.

Logs

Environment

Environment
Laravel Version: 13.39.0
PHP Version: 8.5.12
Composer Version: 2.10.3
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 7
License Key: Set
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.38.0 PRO

Statamic Addons
keyagency/statamic-asset-usage: 1.7.0
rias/statamic-color-swatches: 3.1.1
statamic-rad-pack/mailchimp: 6.2.5
statamic-rad-pack/shopify: 8.0.0
studio1902/statamic-peak-commands: 11.1.1
studio1902/statamic-peak-seo: 11.9.3
studio1902/statamic-peak-tools: 9.2.3

Installation

Starter Kit using via CLI

Additional details

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions