Skip to content

Changing a custom field type now resets the field settings. - #650

Merged
obfuscode merged 1 commit into
stabilityfrom
bug/fieldtype-switch-settings
Nov 23, 2020
Merged

obfuscode merged 1 commit into
stabilityfrom
bug/fieldtype-switch-settings

Conversation

@robinsowell

@robinsowell robinsowell commented Nov 20, 2020 •

Copy link
Copy Markdown
Contributor

Before, it just left the settings, which really shouldn’t have mattered. But it was causing Asset fields to continue to display as Asset fields on publish, even after changing to File fields. The setting fields also didn’t display on the file field’d edit page. Fixes #618

Cleaning them out on save just makes sense.

  • 🐛 Fixes a bug
  • 🚀 Implements a new feature
  • 🛁 Refactors existing code
  • 💅 Fixes coding style
  • ✅ Adds tests
  • 👽 Adds new dependency
  • 🔥 Removes unused files / code
  • 🔒 Improves security

Is this backwards compatible?

  • Yes
  • No

Before, it just left the settings, which really shouldn’t have mattered.  But it was causing Asset fields to continue to display as Asset fields on publish, even after changing to File fields.  The setting fields also didn’t display on the file field’d edit page.

Cleaning them out on save just makes sense.
@obfuscode
obfuscode merged commit 0b8bdb6 into stability Nov 23, 2020
@obfuscode
obfuscode deleted the bug/fieldtype-switch-settings branch November 23, 2020 13:56
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

Successfully merging this pull request may close these issues.

After changing a field type from EEHarbor's "Assets" to "File" field type still showing Asset field in edit entry.

2 participants