Warning dialog not displayed after updating site handle
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, php
Línea de trabajo
Start with resources/js/pages/sites/Edit.vue, linked in the issue, and inspect how initialSiteHandles and currentSiteHandles are initialized and compared. Reproduce the steps at /cp/sites by changing a handle and saving; done means the warning dialog appears and the change is saved only after confirmation. A linked open pull request (#15722) indicates work is already underway.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug description
In site configuration page, updating a site handle and clicking Save shows a success toast message immediately.
A warning confirmation dialog is included in the codebase but is never displayed. As a result, users don't get to see the warning dialog with its message: Warning! Changing a site handle may break existing site content!'.
Possible cause:
In Edit.vue (resources/js/pages/sites), the computed property initialHandleChanged always returns false. It seems currentSiteHandles holds a reference to the same array as initialSiteHandles, not a copy, so updating one updates the other.
Expected result:
A confirmation dialog with its warning message appears. The change is saved only after the user confirms.
Actual result:
No dialog appears. The change is saved immediately, and a success toast is shown.
How to reproduce
https://github.com/user-attachments/assets/56b94ba7-c24a-4dbc-86b3-f9c7fc8d070a
- Go to /cp/sites.
- Change the
Handlefield value of a site (for example, default → main). - Click Save.
Logs
Environment
Environment
Laravel Version: 12.69.2
PHP Version: 8.3.10
Composer Version: 2.10.2
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: log
Queue: sync
Session: file
Storage
public/storage: NOT LINKED
Statamic
Addons: 0
License Key: Not set
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.70.0 PRO
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
- Lenguaje dominante
- PHP
- Estrellas
- 4.9k
- Forks
- 647
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 137
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
-
multisite ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
Setting up URL to a custom elevated session page in config/statamic/users.php won't work in CpAbiertoauth needs more info
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
statamic/cms#15698 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Make native filesystem directory permissions configurable to support shared POSIX ACL accessAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
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
Todos los issues de statamic/cms
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
woocommerce/woocommerce-paypal-payments#4838 ·
Los mantenedores suelen responder en 1 día
-
sync-en
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
nunomaduro/dev-null.sh#1161 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100