Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
2b89423c
Commit
2b89423c
authored
Feb 15, 2020
by
Carsten Rose
Browse files
Merge Branch ME
parent
74b86697
Pipeline
#3286
failed with stages
in 2 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/AbstractBuildForm.php
View file @
2b89423c
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment