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

[5.x]: Error when deleting "draft" user element after navigation #14199

Closed
AugustMiller opened this issue Jan 24, 2024 · 1 comment
Closed

[5.x]: Error when deleting "draft" user element after navigation #14199

AugustMiller opened this issue Jan 24, 2024 · 1 comment
Labels

Comments

@AugustMiller
Copy link
Contributor

What happened?

I tried deleting a "draft" user with the disclosure menu in the breadcrumbs after switching between tabs.

  1. Navigate to /admin/users
  2. Click + New user
  3. Move to a secondary tab like Addresses or Permissions
  4. Open the breadcrumb disclosure menu and click Delete draft
  5. Observe 400 error “Invalid element ID: X” from the elements/delete-draft controller

Seems like the draftId param getting dropped from the query string on the secondary pages causes the element actions to not submit all the required data?

Craft CMS version

5.0.0-alpha.8

PHP version

8.2.x

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

brandonkelly added a commit that referenced this issue Jan 25, 2024
@brandonkelly
Copy link
Member

Thanks! Fixed for the next release.

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

2 participants