Hi, first of all thank you for this promising module.
Let's say I have a translatable content entity 'Email' and one of the fields in it is ‘field_header’., if this field aliased to be ‘header’ via the jsonapi_extras module, when try to sync a email entity I got a PHP error InvalidArgumentException: Field header is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField(), it sounds like the module tries to find the field by the public name instead of the internal field name.
Going to attach a patch to look for the internal filed name
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | entity_share-use-internal-fieldname-2973972-3.patch | 1.66 KB | mgalalm |
Comments
Comment #2
mgalalm commentedComment #3
mgalalm commentedComment #4
mgalalm commentedComment #5
grimreaperHi mgalalm,
Thanks for your patch.
I had to wait to be at DrupalDevDays to have at least time to say thank you.
I will try to review your patch during the event.
Comment #7
grimreaperHi mgalalm,
Thanks for your patch. I have been able to reproduce the bug and your patch fixes it.
It is now merged and pushed.
I also add a note in #2909022: Write tests to not forget to write a test about that.