Originally reported on jsonapi_extras as https://www.drupal.org/node/2885841, this issue actually belongs to JSON API module itself. The issue manifests itself as an inability for content to be updated via PATCH requests if the fields have had their names overridden by jsonapi_extras.

Upon investigation, we found that the updateEntityField method was passing the overridden field name in and attempting to compare it to the original name. @dpolant has a patch incoming to address this issue, but more thorough testing of other methods may be necessary to ensure that field comparisons don't fail elsewhere.

CommentFileSizeAuthor
#2 2885869--patch-internal-fieldname.patch587 bytesdpolant

Comments

logickal created an issue. See original summary.

dpolant’s picture

Status: Active » Needs review
StatusFileSize
new587 bytes

The patch in this comment sets the field name to the correct internal field name that is needed.

logickal’s picture

We have this patch in our install and is working in our use case, but absolutely needs further review and testing.

e0ipso’s picture

Status: Needs review » Fixed

Thanks everyone! This is great.

  • e0ipso committed 1c9346e on 8.x-1.x authored by dpolant
    fix(Serialization): PATCH entities with given the public field name (#...

Status: Fixed » Closed (fixed)

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