Tag condition not respecting default value
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 58/100
Rechercherichtung
Start by tracing how the collection tag applies field conditions and where blueprint defaults are made available to entries. Reproduce with an unsaved entry whose toggle defaults to true, then compare the condition result before and after saving it. Done when the tag returns entries matching the default value before they are explicitly saved.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Create entries for some collection.
- Add a toggle field to the blueprint with a default of
true(or perhaps some other field). - Fetch the entries based on the default value of the field using the
collectiontag. - See none of the entries show up.
- Save entries.
- 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
- Vorherrschende Sprache
- PHP
- Sterne
- 4.9k
- Forks
- 647
- Ø Merge
- 21 Std. 3 Min.
- Gemergte PRs (30 T.)
- 128
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus statamic/cms
-
Passing `null` to `bool_string` modifier returns nothing instead of `false`Evtl. vergeben @shadetheory hat das vor 4 Tagen übernommen. Offenmodifiers
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
statamic/cms#15748 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
accessibility
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
antlers
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
`GlobalRuntimeState::$interpolatedVariables` is never reset, so long-running Antlers renders slow down without boundEvtl. vergeben @lazerg hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
-
`please` cannot run app commands from app/Console/Commands on Laravel 13.36+Evtl. vergeben @lazerg hat das vor 1 Tag übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
statamic/cms#15808 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Automattic/blocks-engine#5003 ·
Maintainer antworten meist innerhalb von 1 Tag
-
from-cloud mythic tracked
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
MythicalLTD/FeatherPanel#459 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: PostgreSQL backend: Queue.remove() / Job.remove() never emit the QueueEvents "removed" eventEvtl. vergeben @1AbdullahButt hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
taskforcesh/bullmq#5085 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:mesi area:php-extension good first issue priority:low type:chore
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
crazy-goat/go-mesi#652 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
shukiv/jabali-panel#2423 ·
Maintainer antworten meist innerhalb von 1 Tag