Cms: Unintended rewrite of field handle

Created on 23 Jan 2020  路  3Comments  路  Source: statamic/cms

When you reopen a newly created field, the handler is rewritten back to if it wasn't set.

This happens before the field is saved.

handle-rewrite

bug

All 3 comments

This is one annoying bug. Just writing this comment in the hopes that this one get's a higher priority.

I am used to look up the handles after being done with creating the blueprints. This keeps me looking in the files directly, which is not that convenient in my current workflow.

I鈥檝e encountered the same issue. Screenshot:

foo

The second field here (handle) has the correct value in the YAML file of the blueprint. But that value is not loaded here (or it is immediately overwritten by this automatic slug thing). If I save the config as is, the YAML file then gets the new, incorrect value.

So, if we鈥檙e not careful to manually rewrite the handle every time we update the field config, the handle gets wrongly modified and then everything breaks.

Just a note (worked this out with @miclf in Discord) that it doesn't happen on a saved blueprint field, only when creating a new field.

Was this page helpful?
0 / 5 - 0 ratings