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

Required select fields accept "- None -" etc. as valid option #21

Closed
jensschuppe opened this issue Apr 3, 2020 · 4 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jensschuppe
Copy link
Contributor

This produces errors like '0' is not a valid option for field county_id.

This applies to those fields:

  • prefix_id
  • suffix_id
  • county_id
  • state_province_id
  • country_id

The extension uses 0 as value for those "- None -" or "- Select -" options. Instead, the empty string '' should be used.

@jensschuppe jensschuppe added the bug Something isn't working label Apr 3, 2020
@jensschuppe jensschuppe added this to the 1.0 milestone Apr 3, 2020
@jensschuppe jensschuppe self-assigned this Apr 3, 2020
@jensschuppe
Copy link
Contributor Author

Forgot to crosslink commit f304f4c

jensschuppe added a commit that referenced this issue Apr 3, 2020
[#21] Required select fields accept "- None -" etc. as valid option
@jensschuppe
Copy link
Contributor Author

Released with 1.0-beta2 and merged into master for the next 1.1.x release.

@bjendres
Copy link
Member

bjendres commented Apr 3, 2020

Has also been released in 1.1.

@jensschuppe can we close this?

@jensschuppe
Copy link
Contributor Author

Sure, that seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants