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

Array field with no keys saves empty keys #2273

Closed
josvar opened this Issue Nov 30, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@josvar

josvar commented Nov 30, 2018

Describe the bug
#1891 is back in the last release.

To Reproduce
Add a new Array field to a fieldset.

Expected behavior
Saving a fieldset with an array field without any keys should have no keys value.

Like this:

      field_8:
        type: array
        display: 'Field 8'

Instead empty keys is generated.

      field_8:
        keys: {  }
        type: array
        display: 'Field 8'

Screenshots
Array field created:
image

Environment details (please complete the following information):

  • Statamic Version 2.11.2
  • Fresh Install
  • Web Server: Valet
  • PHP Version: 7.1 here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment