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

HydraEditor::Form.model_attributes incorrectly assumes all terms are multiple in cleaning #146

Closed
dchandekstark opened this issue Mar 20, 2018 · 1 comment
Assignees
Labels

Comments

@dchandekstark
Copy link
Member

See samvera/hyrax#2296.

HydraEditor::Form.model_attributes cleans term values by removing empty strings, but this only works for multi-valued terms. Single-valued (multiple: false) terms should have empty string value '' replaced with nil.

dchandekstark added a commit to duke-libraries/rdr that referenced this issue Mar 20, 2018
Single-values fields (multiple: false) should have an empty
string value set to nil.

See samvera/hydra-editor#146.
@dchandekstark
Copy link
Member Author

dchandekstark commented Mar 20, 2018

ad96 pushed a commit to duke-libraries/rdr that referenced this issue Mar 20, 2018
Single-values fields (multiple: false) should have an empty
string value set to nil.

See samvera/hydra-editor#146.
dchandekstark added a commit to dchandekstark/hydra-editor that referenced this issue Mar 20, 2018
For non-mulitple terms, an empty string value is replaced by nil.
Fixes samvera#146.
@aeschylus aeschylus removed the review label Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants