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

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

Merged
merged 1 commit into from Nov 23, 2020

Conversation

robinsowell
Copy link
Contributor

@robinsowell robinsowell commented Nov 20, 2020

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
2 participants