When updating a taxonomy term with an empty description we have this error:

Warning: Undefined array key "description" in unique_field_taxonomy_term_form_validate() (line 380 of modules/contrib/unique_field/unique_field.module).
unique_field_taxonomy_term_form_validate()

It needs a small fix when retrieving the description to deal with empty value here

  $description = $form_state->getValues()['description'][0]['value'];
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

tostinni created an issue. See original summary.

tostinni’s picture

Status: Active » Needs review

Switching to Needs review

astonvictor’s picture

Issue tags: +LutskGCW26
matthew10’s picture

Assigned: Unassigned » matthew10
matthew10’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed and tested — all good.
The "Undefined array key 'description'" error when saving empty description is resolved.

matthew10’s picture

Assigned: matthew10 » Unassigned
astonvictor’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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