Problem/Motivation

When saving/updating index fields, if you want to change the machine_name value of the field you will get a "field does not exist" error.

This is especially necessary when adding a field with a vague name (like an aggregated_field) or an entity reference field since it can be nondescript by default ("name" for a referenced taxonomy term).

Steps to reproduce

  1. Create or update the machine_name for a field.
  2. Save the index fields form
Expected result:

Name is updated

Actual result:

Field is removed and field does not exist error is thrown.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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

jacobsaw created an issue. See original summary.

jacobsaw’s picture

Status: Active » Needs review

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

interx’s picture

Status: Needs review » Fixed

Committed, many thanks!

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

jacobsaw’s picture

Thank you!

Apologies for all of the issues to review, my team is hopefully going to be launching a new search feature with this module so I wanted to contribute back what I could. Happy to help clarify anything and thank you for creating/maintaining this!

Status: Fixed » Closed (fixed)

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