N°931 AttributeSet widget : fix crash when having a ' in the label

This commit is contained in:
Pierre Goiffon
2018-09-27 18:31:55 +02:00
parent 1d28a67d21
commit 3e8dd61607

View File

@@ -2044,7 +2044,7 @@ EOF
/** @var \ormSet $value */
$sJson = $oAttDef->GetJsonForWidget($value, $aArgs);
$sSetInputName = "attr_{$sFormPrefix}{$sAttCode}";
$sHTMLValue = "<div class=\"field_input_zone field_input_set\"><input id='$iId' name='$sSetInputName' type='hidden' value='$sJson'></div>{$sValidationSpan}{$sReloadSpan}";
$sHTMLValue = "<div class=\"field_input_zone field_input_set\"><textarea id='$iId' name='$sSetInputName' style='display: none;'> $sJson</textarea></div>{$sValidationSpan}{$sReloadSpan}";
$sScript = "$('#$iId').set_widget();";
$oPage->add_ready_script($sScript);
break;