Skip to content
Snippets Groups Projects
Commit 0bdeab21 authored by Joachim Noreiko's avatar Joachim Noreiko
Browse files

Issue #3254978 by joachim: Fixed radios values not saving in component form.

parent 2d7dc30b
Branches
Tags
No related merge requests found
......@@ -1107,7 +1107,9 @@ class ComponentSectionForm extends ComponentFormBase {
elseif (!is_numeric($key) && $data->{$key}->hasOptions() && !$data->{$key}->isRequired()) {
// Options elements that are not required should be cleaned up, so we
// don't set an empty string as the data value.
unset($array[$key]);
if ($value == '' || $value == NULL) {
unset($array[$key]);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment