Problem/Motivation

When using the Entity Form Field plugin in a View with relationships, the form field names are generated using the base entity's ID instead of the relationship entity's ID. This causes all rows in the view to share the same form field names, resulting in all rows sharing the same values. When the form is submitted, all entities are saved with the same values (typically the last row's values), overwriting the individual values for each entity.

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

jungle created an issue. See original summary.

jungle’s picture

Status: Active » Needs review
StatusFileSize
new2.04 KB

jannakha made their first commit to this issue’s fork.

jannakha’s picture

created MR from patch #2

anybody made their first commit to this issue’s fork.

anybody’s picture

Status: Needs review » Reviewed & tested by the community

Nice work! Rebased and RTBC'd!

  • vladimiraus committed 961cddde on 8.x-1.x authored by jannakha
    #3565015 Entity form field uses base entity ID instead of relationship...
vladimiraus’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution.
Committed. 🍻

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.

anybody’s picture

Thank you @vladimiraus!!

Status: Fixed » Closed (fixed)

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