Tag condition not respecting default value
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 58/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- PHP
- Estrellas
- 4.9k
- Forks
- 647
- Merge medio
- 21 h 3 min
- PR fusionados (30 d)
- 128
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de statamic/cms
-
Passing `null` to `bool_string` modifier returns nothing instead of `false`Posiblemente ocupada @shadetheory la tomó hace 4 días. Abiertomodifiers
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
statamic/cms#15748 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
accessibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
antlers
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
`GlobalRuntimeState::$interpolatedVariables` is never reset, so long-running Antlers renders slow down without boundPosiblemente ocupada @lazerg la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
`please` cannot run app commands from app/Console/Commands on Laravel 13.36+Posiblemente ocupada @lazerg la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
statamic/cms#15808 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de statamic/cms
Issues similares
-
Captured slideshow pass overwrites the route path, aborting compose with a rebind() TypeErrorAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Automattic/blocks-engine#5003 ·
Los mantenedores suelen responder en 1 día
-
from-cloud mythic tracked
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
MythicalLTD/FeatherPanel#459 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: PostgreSQL backend: Queue.remove() / Job.remove() never emit the QueueEvents "removed" eventPosiblemente ocupada @1AbdullahButt la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
taskforcesh/bullmq#5085 ·
Los mantenedores suelen responder en 1 día
-
area:mesi area:php-extension good first issue priority:low type:chore
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
crazy-goat/go-mesi#652 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
shukiv/jabali-panel#2423 ·
Los mantenedores suelen responder en 1 día