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

Allowed to use a select element in theme form. #1168

Merged
merged 3 commits into from
Jan 12, 2018

Conversation

Daniel-KM
Copy link
Contributor

When a theme.ini contains a select form, an empty value is not allowed. This fixes it.
In fact, the Select doesn't accept a default value nowhere, but this is a Zend element, so it may be changed globally via getInputSpecification or something else, but for now this is enough.

@zerocrates
Copy link
Member

This is one of these areas where I can't quite figure why the default is the way it is, but ah well. It's not an uncommon sentiment I have about the form component.

Does this work using allow_empty true rather than required false?

My preference would be to apply this only to selects and only ones that have an empty option set, but I'm not sure how much it really matters to do so.

@Daniel-KM
Copy link
Contributor Author

Yes, it works with allow_empty only.

@zerocrates zerocrates merged commit fd14f1a into omeka:develop Jan 12, 2018
@Daniel-KM Daniel-KM deleted the fix/theme_select branch January 15, 2018 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants