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
Sortable group not saving radio options initially #246
Comments
kynetiv
pushed a commit
to kynetiv/CMB2
that referenced
this issue
Apr 28, 2015
…a checkbox or radio input. If the input is a checkbox or radio, the original value is needed or saving will not save the value (subsequent post saves work because inputs will then have the required value set). This patch conditionally adds values to radios and inputs on new repeatable and sets the checked attribute only on the default option (radios). Fixes issue CMB2#257 (this will set reset text inputs as well), and CMB2#246 & CMB2#263(restores radio and checkbox values on new row saves)
related #341 |
jtsternberg
added a commit
that referenced
this issue
Aug 7, 2015
Should be good in the trunk branch. please test. |
This looks to be working now, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've created a sortable group with a couple of fields, one of which is a radio option that defaults to one of three choices. It appears to work just fine in populating new rows to the group, and saving values from the other fields, but on the post-new.php save it only stores the first group's radio button value and the others revert to the default. It works fine on the the post.php screen's save, so it just needs to be created and then re-saved with new values.
The text was updated successfully, but these errors were encountered: