Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Site Order Randomly Changes Between Site Selection in Globals #4147

Closed
richhayler opened this issue Apr 16, 2019 · 6 comments
Closed

Bug: Site Order Randomly Changes Between Site Selection in Globals #4147

richhayler opened this issue Apr 16, 2019 · 6 comments
Assignees

Comments

@richhayler
Copy link

richhayler commented Apr 16, 2019

Description

In the "Globals" section of the control panel the order of sites listed in the site dropdown field changes between selecting a particular site.

Steps to reproduce

For a multi-site setup with a number of sites configured (e.g. ~5 sites)

  1. Go to the "Globals" section in the control panel
  2. Click on the "Sites" dropdown - note the site order
  3. Select a site
  4. Click on the "Sites" dropdown once the page refreshes - note the order (which should have changed compared to step 2)
  • Craft version: 3.1.22
@richhayler richhayler changed the title Bug: Site Order Random Changes Bug: Site Order Random Changes Between Site Selection in Globals Apr 16, 2019
@andris-sevcenko
Copy link
Contributor

Can you send over your DB dump, composer.json, composer.lock and the project.yaml (if it exists) file to [email protected]? Also, the contents of storage/config-backups would help a lot!

@richhayler richhayler changed the title Bug: Site Order Random Changes Between Site Selection in Globals Bug: Site Order Randomly Changes Between Site Selection in Globals Apr 16, 2019
@richhayler
Copy link
Author

On its way to you now...

@richhayler
Copy link
Author

Looks like this may only be an issue when no custom order has been applied to the default "Site Group". I only have one site group but after I specified a custom sort order it appears that new order was respected each time I selected a different site in the dropdown list within the "Globals" section.

@richhayler
Copy link
Author

richhayler commented Apr 16, 2019

It would be interesting to understand what order craft applies to listed sites if no custom order has been set for the default site group. Looking at my above screenshots and as far as I can tell it doesn't appear this is alphabetically or by site ID?

@richhayler
Copy link
Author

richhayler commented Apr 16, 2019

A "default" order for "all sites" or a site group where no custom order is set would probably make sense to be alphabetically with the exception of placing the specified "primary site" at the top of the list.

@andris-sevcenko
Copy link
Contributor

There's still an order. Looking at the files you sent over it seems like that was overwritten at some point. Trying to see if I can reproduce borking the sort order locally now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants