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

Dropdown field value of "0" returns a false value for the selected property #2144

Closed
nateclonch opened this issue Nov 30, 2017 · 1 comment

Comments

@nateclonch
Copy link

commented Nov 30, 2017

Description

Using the dropdown field with an option having "0" as its value prevents the selected property from returning true

Steps to reproduce

  1. Create and implement a dropdown field with "0" as one of the option values
  2. Select that option from the dropdown and save the element
  3. dump() the field's option property (e.g. <pre>{{ dump(entry.dropdown.options) }}</pre>)
  4. Confirm that the selected option is in fact not returning true

Additional info

  • Craft version: 2.6.2997
  • PHP version: 5.5.9
  • Database driver & version: MYSQL 5.5.55
  • Plugins & versions: NA
brandonkelly added a commit that referenced this issue Dec 4, 2017
@brandonkelly

This comment has been minimized.

Copy link
Member

commented Dec 4, 2017

Fixed for the next release. Thanks!

@brandonkelly brandonkelly added the bug label Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.