Skip to content
Snippets Groups Projects
Commit 4a49ddd1 authored by Jared Hancock's avatar Jared Hancock
Browse files

forms: Standardize saving of choice field values

Always save a key/value hash of the selected value(s). However, if the field
does not have the multivalue configuration setting, then retrieve just the
key with the to_php() function. to_database(), however, will always return a
JSON string with the value(s) formatted as a hash array.
parent 19f771e1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment