Problem/Motivation

I decided to name it "field_media_multiple", as it's a media field and has multiple values.
For some reason I could not change set "controlsTextPrev" or "controlsTextNext" (and many other fields, which I didn't care about)

The issue is the form-states which assume the field name to be "field_image":
':input[name="fields[field_image][settings_edit_form][settings][controls]"]'

Steps to reproduce

1. Create an entity type with a media/image field named other than "field_image"
2. Try to configure the view of that field
3. Check the "Controls" checkbox
4. See no textfields for prev/next come up.

Proposed resolution

Get the actual field name of the current field via the field definition.

Remaining tasks

Fix in code and create MR.

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

serkanb created an issue. See original summary.

serkanb’s picture

Status: Active » Needs review

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

ipwa’s picture

Status: Needs review » Reviewed & tested by the community

ipwa’s picture

Status: Reviewed & tested by the community » Fixed

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.

ipwa’s picture

Thanks serkanb

Status: Fixed » Closed (fixed)

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