Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existing field handle overwritten upon edit #72

Closed
lhs-dev opened this issue Sep 2, 2020 · 1 comment
Closed

Existing field handle overwritten upon edit #72

lhs-dev opened this issue Sep 2, 2020 · 1 comment

Comments

@lhs-dev
Copy link

lhs-dev commented Sep 2, 2020

Description

When I edit an existing field, its handle is overwritten with the slugified version of its title.

Steps to reproduce

  1. From the field manager, edit an existing field (field name: Content builders - Pages de contenu, handle: contentBuildersMain)
  2. When the edit modal has finished loading, the correct handle is displayed (contentBuildersMain)
  3. [Optional] Make some edits
  4. Click the save button
  5. While the field is saving, before the modal window is closed, notice the handle has changed (contentBuildersPagesDeContenu)

Additional info

  • Plugin version: 2.1.8
  • Craft version: 3.4.x and 3.5.x
  • Multi-site: Yes

Additional context

This happens every time, except when I make some changes to the handle myself:

  1. From the field manager, edit an existing field (field name: Content builders - Pages de contenu, handle: contentBuildersMain)
  2. When the edit modal has finished loading, the correct handle is displayed (contentBuildersMain)
  3. Change the handle to contentBuildersMainNew
  4. Click the save button
  5. While the field is saving, before the modal window is closed, notice the handle hasn't changed (still contentBuildersMainNew)
@engram-design
Copy link
Member

Pretty sure this was done on purpose at the time, but it's confusing behaviour. I suppose I was trying to make it easy to manage field handles.

Updated in 2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants