Skip to content

[5.x]: Editing users in a slideout and saving with cmd+s triggers an error #15307

@i-just

Description

@i-just

What happened?

Description

Editing users in a slideout and saving with cmd+s triggers an error. Saving via the Save button works as expected.

Steps to reproduce

  1. Open user element in a slideout (either from the users index page or Users field)
  2. Make a change to one of the fields
  3. cmd+s to save
  4. notice the warning appear in the top right corner of the slideout

The error is “Element could not be duplicated because it doesn’t validate.”.
The actual element errors that trigger this are:

  • Username "u1" has already been taken.
  • Email "[email protected]" has already been taken.

Expected behavior

Be able to change and save the user via a slideout using the cmd+s shortcut.

Actual behavior

Not able to save the user via a slideout using the cmd+s shortcut.

Craft CMS version

5.2.5

PHP version

8.1

Operating system and version

No response

Database type and version

mysql 8

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions