Inline editing is broken on content that have workflows enabled

Created on 25 October 2023, about 1 year ago
Updated 23 May 2024, 6 months ago

Problem/Motivation

Content types that have workflows enabled will fail to edit inline entity content.

Steps to reproduce

  1. Create content type A
  2. Create content type B with entity reference field to A, and form field display mode 'inline complex'
  3. Create a core workflow for content type B at /admin/config/workflow/workflows/add, leave everything default, and add content type B into the 'Content types' section
  4. Create a dummy content for content type A
  5. Create new content for type B, and chose existing node you just created above, hit save
  6. Now edit the newly created type B node, and in the entity reference field that contains type A Click edit. Make some changes
  7. Hit 'Update node' and then 'Save'
  8. Go back to edit, and you will see that the referenced entity was not updated

Additionally when you hit 'Update Node' chrome dev console throws an ajax error.
Looking at the drupal logs this is the error I see

InvalidArgumentException: Field field_testcontent is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField()

Not sure if this is something on my end, or perhaps core, can anyone else replicate?

Also this is on core 10.1.5

Thanks

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada pub497

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

Comments & Activities

Production build 0.71.5 2024