Steps to reproduce

1. Select a field "Choose the fields that should be unique".
2. Remove this field from the form at "Manage form display".
3. Edit the node.
4. The website encountered an unexpected error. Try again later.

Proposed resolution

We need to skip validations for the fields which not presented in the form.
For example, the fields that are hidden in the "Manage form display".

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bohart created an issue. See original summary.

bohart’s picture

Assigned: bohart » Unassigned
Status: Active » Needs review

The provided MR fixes the issue.

It skips validations for the fields which are not presented in the form.
For example, the fields that are hidden in the "Manage form display".

  • bohart committed 08217d26 on 8.x-2.x
    Issue #3497850 by bohart: Skips validations for the fields which are not...
astonvictor’s picture

thanks for the report and quick fix.

merged and released

astonvictor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.