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

CP: Collection Fieldset and Max Items 1 set as Panes #1314

Closed
JayVerb opened this Issue Mar 10, 2017 · 3 comments

Comments

Projects
None yet
4 participants
@JayVerb

JayVerb commented Mar 10, 2017

Expected behaviour

When adding a Collection field type in a fieldset, if you set it to Max Items 1 and UI Mode to Panes, it should display as a dropdown list rather than Panes when adding new content.

Actual behaviour

It still displays as Panes

Steps to reproduce

  1. Make sure you have a Collection with entries
  2. Add a Collection Field within a fieldset
  3. Set Max Items to 1
  4. Set UI Mode to Panes
  5. Add a new entry where the fieldset you just edited is present

Server configuration

Operating system:
Mac 10.12.3

Web server:
Apache

PHP version:
7.0.2

Statamic version:
2.5.5

Updated from an older Statamic or fresh install:
Updated

List of installed addons:
N/A

Logs

N/A

panes fieldset display

@jackmcdade jackmcdade self-assigned this Mar 16, 2017

@jackmcdade

This comment has been minimized.

Member

jackmcdade commented Mar 16, 2017

Got this one fixed up. It was the age-old "YAML is parsing 1 as the string "1".

@JayVerb

This comment has been minimized.

JayVerb commented Mar 16, 2017

Awesome @jackmcdade, thank you! Does the YAML still save the result as an array if set to 1? It would be nice to get rid of all my relate tags .

@edalzell

This comment has been minimized.

edalzell commented Mar 16, 2017

Perhaps this is the same issue: #1309 ?

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