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

Taxonomy field with max_items: 1 gets saved as an array not as a string #1100

miktirr opened this Issue Nov 10, 2016 · 0 comments


None yet
2 participants

miktirr commented Nov 10, 2016

Expected behaviour

The taxonomy fieldtype should save as string when max_items is 1 (see the changelog for 2.1.14).

Actual behaviour

The taxonomy fieldtype saves an array regardless the max_items setting.

Steps to reproduce

  1. A new Statamic installation (2.1.17)
  2. Add max_items: "1" to tags in site/settings/fieldsets/post.yaml
  3. Edit the ”Fire! Fire!” blog post in the CP. Remove the ”Harry Potter” tag. Save. Edit the post again. Put the ”Harry Potter” tag back in. Save.
  4. Check the markdown file of the post. You have
  - b5745454-06a3-41c8-b9d9-0ab4870834eb

Server configuration

Web server:

PHP version:

Statamic version:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment