Commit 2b89423c authored by Carsten  Rose's avatar Carsten Rose

Merge Branch ME

parent 74b86697
Pipeline #3286 failed with stages
in 2 minutes and 21 seconds
......@@ -1361,12 +1361,22 @@ abstract class AbstractBuildForm {
$formElement[FE_INPUT_TYPE] = 'hidden';
// TAG handling expects the '$value' as a JSON string.
// Old, much to complicated
$kk = KeyValueStringParser::parse($value, ':', ',', KVP_IF_VALUE_EMPTY_COPY_KEY);
$jj = '';
foreach ($kk as $arrKey => $arrValue) {
$jj .= ',' . json_encode(["key" => $arrKey, "value" => $arrValue]);
}
$value = '[' . substr($jj, 1) . ']';
// $tags = [
// ['value' => "Alabama", 'key' => "AL"],
// ['value' => "Alaska", 'key' => "AK"]
// ];
// $tagsSafeJson = htmlentities(json_encode($tags), ENT_QUOTES, 'UTF-8');
//
// $tags1=KeyValueStringParser::parse($value, ':', ',', KVP_IF_VALUE_EMPTY_COPY_KEY);
// $tags1SafeJson = htmlentities(json_encode($tags1), ENT_QUOTES, 'UTF-8');
}
}
......@@ -1440,6 +1450,7 @@ abstract class AbstractBuildForm {
$htmlTag = '<input';
if (!empty($formElement[FE_INPUT_TYPE])) {
$formElement[FE_TYPE] = $formElement[FE_INPUT_TYPE];
$formElement[FE_TYPE] = 'hidden';
}
$attribute .= HelperFormElement::getAttributeList($formElement, [FE_TYPE, 'size']);
$attribute .= Support::doAttribute('value', htmlentities($value), false);
......
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