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

Bad ordering range after save #2997

Closed
lufog opened this issue Jun 17, 2020 · 5 comments
Closed

Bad ordering range after save #2997

lufog opened this issue Jun 17, 2020 · 5 comments
Assignees

Comments

@lufog
Copy link

lufog commented Jun 17, 2020

When you save page via admin plugin, it is given the wrong index.

How to reproduce:

  1. Create page, for example Parent
  2. Cheate two, child pages, for example Child 1 and Child 2.
  3. Enable Ordering.
  4. Edit page Child 1 via admin plugin, and change Folder Name, for example to child-1-abc.

After saving, page structure is:

parent
 - 02.child-2
 - 03.child-1-abc

And on the site you get error An exception has been thrown during the rendering of a template ("Undefined index: markdown").

@lufog
Copy link
Author

lufog commented Jun 17, 2020

Sometimes after adding child page, its index is 99999.

@ricardo118
Copy link
Contributor

@lufog is this related to the numbers on the folder name? can you test without numbers on the folder name

@lufog
Copy link
Author

lufog commented Jun 19, 2020

is this related to the numbers on the folder name?
yes

@mahagr
Copy link
Member

mahagr commented Jul 7, 2020

Which version of admin are you using? If 1.7, are you using the new admin or the old?

@mahagr mahagr self-assigned this Jul 7, 2020
@mahagr
Copy link
Member

mahagr commented Aug 28, 2020

I was able to reproduce this one.

@mahagr mahagr changed the title Wrong index on save Bad ordering range after save Aug 28, 2020
@mahagr mahagr transferred this issue from getgrav/grav-plugin-admin Aug 28, 2020
@mahagr mahagr added the fixed label Aug 28, 2020
@mahagr mahagr closed this as completed Sep 2, 2020
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

3 participants