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

Dragging of non-line and inline editable blocks do not save their position #548

Closed
clarkepaul opened this issue Dec 13, 2018 · 10 comments
Closed

Comments

@clarkepaul
Copy link

clarkepaul commented Dec 13, 2018

When you have a mix of in-page editable blocks and blocks like the Form Block which aren't in-page editable, and you re-order them the blocks do not save their position.

Tested in 4.3 (pre stable release)

cc @brynwhyman

@clarkepaul
Copy link
Author

Could be problems with block pages in blocks pages if the above test okay?

@brynwhyman brynwhyman added this to the Sprint 27 milestone Dec 17, 2018
@ScopeyNZ ScopeyNZ self-assigned this Dec 17, 2018
@robbieaverill robbieaverill mentioned this issue Dec 17, 2018
@ScopeyNZ
Copy link
Contributor

Spoke about this with @sachajudd . I think this is mostly just #547 (no preview update is triggered on re-order)? I've raised an PR that resolves that.

I've also included a fix to update the draft status of blocks that you re-order.

There is another issue that we've been experiencing which appears to be fixed by recent core changes - an update of installed modules resolved that issue.

Once #553 is merged I'd say this is closed - reopen if you feel the issue is still not resolved.

@ScopeyNZ
Copy link
Contributor

#553 is merged. I'll close this for now - feel free to reopen if there are some steps that can reproduce the issue as reported.

Thanks!

@ScopeyNZ ScopeyNZ removed their assignment Dec 18, 2018
@robbieaverill
Copy link
Contributor

Cool, I'll retrospectively lower the impact rating on account of your findings

@lexakami
Copy link
Contributor

I think this issue is still happening in 4.0.0, unsure if it's exactly the same issue though.

Steps to reproduce:

  1. Create a inline editable block
  2. Create a non inline editable block
  3. Create a inline editable block
  4. Publish the page
  5. Drag the last inline block to the top
  6. Drag the non inline block to the middle
  7. Publish the page

Both of the inline blocks then have a sort order of 1 in the Element_Live table.

@asecondwill
Copy link

I'm getting similar issues to @lexakami with ordering not working in SS4, Elemental 4.0

@kinglozzer
Copy link
Member

Same here (elemental 4.0.0), I put it down to a one-off blip as I’d made a large number of model changes at the time. I’m back on that project later this week so I’ll take a good look then if no one beats me to it. For reference, none of the blocks in my project are inline-editable.

@ScopeyNZ ScopeyNZ reopened this Jan 24, 2019
@ScopeyNZ
Copy link
Contributor

Thanks all we'll take another look.

@ScopeyNZ
Copy link
Contributor

Okay thanks to @Kethatril on the community Slack I've found the probable cause for the issue. We were updating surrounding objects when sorting things but only on the "draft" table and never the "live" table. I've raised a PR at #580 that should resolve this issue.

@robbieaverill
Copy link
Contributor

#580 is merged

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

7 participants