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

Undo goes beyond first change #4881

Closed
schaarsc opened this issue Oct 18, 2023 · 2 comments · Fixed by #5589
Closed

Undo goes beyond first change #4881

schaarsc opened this issue Oct 18, 2023 · 2 comments · Fixed by #5589
Labels
bug Something isn't working

Comments

@schaarsc
Copy link

Describe the bug
Multiple undo can delete document content

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Collectives App' / configured with "Open Pages in View Mode"
  2. open a page
  3. enter edit mode
  4. type text, eg. "abc"
  5. type "ctrl+Z" multiple times
  6. not only "abc" is deleted, but the content is deleted completely
  7. type "ctrl+R" , this will reload the page in Firefox
  8. i. if document is opened from the files-app, an empty document is opened in edit mode
    ii. if document is opened in Collectives, the version from step 2. is shown. but changing to edit mode also shows empty document

Expected behavior
in step 5. only delete "abc" no matter how often "crtrl+z" is pressed

Server details:

  • Nextcloud version: 27.1.2

Client details:

  • Browser: Firefox
  • Browser version: 115.3esr
@schaarsc schaarsc added the bug Something isn't working label Oct 18, 2023
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Mar 26, 2024
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 📄 To do (~10 entries) in 📝 Office team Mar 26, 2024
@mejo-
Copy link
Member

mejo- commented Mar 26, 2024

I can reproduce this. Probably the first step that sets the dav content is in the undo history.

@juliushaertl @max-nextcloud do you have good ideas how to solve this? Maybe we can set the dav content as a step that is not pushed to the undo history?

@juliusknorr
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants