Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Reordering collection of a collection in CP reverses order unexpectedly

Abierto
#11,874 2 comentarios 1 reacción 0 asignados Ver en GitHub

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
30/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
php
Área
frontend

Línea de trabajo

Start by reproducing the reported case: an orderable collection with descending direction and max depth 1. Trace the collection reorder flow from the CP list view into the reorder view; the issue does not name files or tests, so locate the relevant entry points in the project. Done means the order stays the same when opening reorder and after saving.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

ux
Bug description

A descending collection switches order to ascending when you click reorder and then switches back again on save.

This doesn't actually break the order but leads the user to think it's broken and is causing confusion.

A couple of clients has reported this and one user just spend time manually reversing and 100+ collection as they thought it had gone wrong!

I think this actually what is being described here by @DanielDarrenJones - although I can't see the Loom any more - it isn't just related to a dated collection as @duncanmcclean suggests.

The expected behaviour is the order should stay the same between the list view and reorder view.

How to reproduce
  • Have a collection
  • Make it orderable
  • Set direction to descending
  • Set max depth to 1 (not tested with other depths)
  • Press Reorder and the entires become ascending
  • Press Save Order become descending
Logs

Environment
Environment
Application Name: Foo
Laravel Version: 12.16.0
PHP Version: 8.3.22
Composer Version: 2.8.9
Environment: local
Debug Mode: ENABLED
URL: bm.test
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: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.56.0
Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Lenguaje dominante
PHP
Estrellas
4.9k
Forks
647
Merge medio
1 d 20 h
PR fusionados (30 d)
113

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de statamic/cms

Todos los issues de statamic/cms

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.