Commit 25ea9583 authored by Carsten  Rose's avatar Carsten Rose
Browse files

#2542 / FormElement-Typ 'note' funktioniert nicht mit dynamic update

Fix problem that also non-'note' FE's has been updated.
parent 71fc9567
......@@ -722,7 +722,10 @@ abstract class AbstractBuildForm {
if (isset($formElement[FE_NOTE])) {
$key = $formElement[FE_HTML_ID] . HTML_ID_EXTENSION_NOTE;
$json[API_ELEMENT_UPDATE][$key][API_ELEMENT_CONTENT] = $formElement[FE_NOTE];
}
// For FE.type='note': update the column 'input'
if (isset($formElement[FE_TYPE]) && $formElement[FE_TYPE] === FE_TYPE_NOTE) {
$key = $formElement[FE_HTML_ID] . HTML_ID_EXTENSION_INPUT;
$json[API_ELEMENT_UPDATE][$key][API_ELEMENT_CONTENT] = $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