Commit 7f79cdac authored by Carsten  Rose's avatar Carsten Rose
Browse files

Refs #7974: attribute 'readonly=false|readonly' - tinyMCE & textarea ok....

Refs #7974: attribute 'readonly=false|readonly' - tinyMCE & textarea ok. Broken on dynamic update: 'checkbox|radio'.
parent 7c68b30a
Pipeline #2843 passed with stages
in 2 minutes and 40 seconds
......@@ -1178,6 +1178,7 @@ abstract class AbstractBuildForm {
$json[API_ELEMENT_UPDATE][$key][API_ELEMENT_ATTRIBUTE]['class'] = $class;
$json[API_ELEMENT_UPDATE][$key][API_ELEMENT_ATTRIBUTE]['required'] = ($formElement[FE_MODE] == 'required');
$json[API_ELEMENT_UPDATE][$key][API_ELEMENT_ATTRIBUTE]['hidden'] = $statusHidden;
$json[API_ELEMENT_UPDATE][$key][API_ELEMENT_ATTRIBUTE]['readonly'] = $json['disabled'] ? 'readonly' : 'false';
if ($pattern !== null) {
$json[API_ELEMENT_UPDATE][$key][API_ELEMENT_ATTRIBUTE]['pattern'] = $pattern;
......
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