Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
21dedc21
Commit
21dedc21
authored
Sep 09, 2019
by
Marc Egger
Browse files
Report.php: Twig, convert json object into associative array
parent
d5271049
Pipeline
#2344
passed with stages
in 2 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/Report/Report.php
View file @
21dedc21
...
...
@@ -715,7 +715,7 @@ class Report {
// Json decode Filter
// E.g.: {% set obj = '["this is one", "this is two"]' | json_decode%}
$filter
=
new
\
Twig\TwigFilter
(
'json_decode'
,
function
(
$string
)
{
return
json_decode
(
$string
);
return
json_decode
(
$string
,
true
);
},
[
'is_safe'
=>
[
'html'
]]);
$twig
->
addFilter
(
$filter
);
...
...
Write
Preview
Markdown
is supported
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