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

Reordering multi site #1869

Closed
jkhwsd opened this issue May 28, 2020 · 0 comments
Closed

Reordering multi site #1869

jkhwsd opened this issue May 28, 2020 · 0 comments

Comments

@jkhwsd
Copy link

jkhwsd commented May 28, 2020

Bug Description

When reordering an orderable collection (max_depth: 1) with a multi site setup, all entires in the collection are fetched without a filter for the active site.

This again causes an error when saving the reordering, and afterwards all pages fail.

How to Reproduce

From a fresh installation:

  1. Make site a multi-site
  2. Create a new collection
  3. Configure the collection to be orderable, max depth: 1, and enable it for both sites
  4. Create two entries and enable them for both sites
    • The error can even be triggered with a single entry enabled for both sites
  5. Click "Reorder"
    • Here all 4 entries are shown
  6. Click "Save order"
    • An error happens

Extra Detail

After the reorder the collection tree looks something like this:

  tree:
    default:
      - {  }
      - {  }
      -
        entry: ff26cab9-b2c6-42e3-be94-27d7c800bd47
      -
        entry: 7155ec97-416b-431a-a122-7043f0b3f7e0
    other: {  }

So it appears as if only the id's for the active site is inserted.

Environment

Statamic version: v3.0.0-beta.28

PHP version: 7.4

Install method (choose one): Fresh install from statamic/statamic

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

No branches or pull requests

2 participants