Deleted entities prevent form saving

Created on 6 October 2023, about 1 year ago

Problem/Motivation

Here's a simple example:
a node has a taxonomy field that is configured to use CSHS
a user creates a piece of content tagged with any term.
If the term is deleted and the user goes back to the node for, they get an error when saving the form in the format: "Undefined array key 1 in menu_link_weight_node_form_validate() (line 232 of modules/contrib/menu_link_weight/menu_link_weight.node.inc"

Steps to reproduce

  1. create a taxonomy vocab
  2. create a taxonomy term in that vocab
  3. add a reference field to a content type and configure the form widget with CSHS
  4. add a node with the field populated with the term from above
  5. delete the term
  6. go to edit the node
  7. with no changes, attempt to save
  8. Observe the error

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pookmish

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024