Commit c942b3e5 authored by Carsten  Rose's avatar Carsten Rose
Browse files

#3385 / templateGroup: insert/update/delete non primary records

AbstractBuildForm.php: No primary record leads to a problem that the default values, given as an array, are not replaced by scalar values. fixed.
parent 8db50d60
......@@ -420,6 +420,9 @@ abstract class AbstractBuildForm {
$value = '';
Support::setIfNotSet($formElement, FE_VALUE);
if (is_array($formElement[FE_VALUE])) {
$formElement[FE_VALUE] = (count($formElement[FE_VALUE])) > 0 ? current($formElement[FE_VALUE][0]) : '';
}
// If is FormElement['value'] explicit defined: take it
// There are two options: a) single value, b) array of values (template Group)
// if (is_array($formElement[FE_VALUE])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment