Issue Bug Closed

#92982Fluid and javascript variables

X B 12/03/20, 16:32 updated 05/08/21, 10:02

Description

Hello,

We have found a bug with fluid template.
The javascript variables with a TYPO3 constant seems doesnt work after an f: format tag

The following code:

<script>var avt= "{data.tx_mask_chart}";</script>

 <h1> TEST  <f:format.date format="d/m/Y">{data.tx_mask_date}</f:format.date></h1>

 <script>var apres= "{data.tx_mask_chart}";</script>

renders the following HTML:

 <script>var avt= "#c6ce4e";</script>

<h1> TEST  30/12/2018</h1>

<script>var apres= "{data.tx_mask_chart}";</script>

The variable doesn’t seem to work after the f: format tag

TYPO3 version is 8.7.38.

The problem seems to come from the last update of typo3.

Any ideas?

Thanks

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.