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

Nested entry card shows "Invalid entry ID" after undo #224

Closed
mmikkel opened this issue May 10, 2024 · 1 comment
Closed

Nested entry card shows "Invalid entry ID" after undo #224

mmikkel opened this issue May 10, 2024 · 1 comment
Assignees
Labels

Comments

@mmikkel
Copy link

mmikkel commented May 10, 2024

Description

If a nested entry is removed in a CKEditor field, and then re-added via undo, the re-inserted nested entry card displays "Invalid entry ID". This only happens if the provisional draft has time to auto-save in between the nested entry being removed, and the undo action (i.e. if the author undoes really fast, before the auto-save has time to kick in, the nested card comes back as normal).

Refreshing the edit page in the browser displays the nested entry card restored to its former glory.

CleanShot.2024-05-10.at.13.55.51.mp4

Steps to reproduce

  1. Add a nested entry to a CKEditor field
  2. Remove the nested entry. Allow the provisional draft to auto-save after removing it.
  3. Undo the removal, either by using the undo shortcut (Cmd+Z on Mac) or via the CKEditor "Undo" toolbar action
  4. Observe that the nested entry card now says "Invalid entry ID (something)".
  5. Refresh the edit page; observe that the nested entry card is now restored.

Additional info

  • Craft version: 5.1.2
  • PHP version:
  • Database driver & version:
  • Plugins & versions: CKEditor 4.0.4
@brandonkelly
Copy link
Member

Fixed in CKEditor 4.0.5!

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

No branches or pull requests

3 participants