- Issue created by @idiaz.roncero
- πͺπΈSpain idiaz.roncero Madrid
Create a MR with a fix that ensures that PHP arrays are not associative and won't be interpreted as objects when converting to javascript.
- Status changed to Needs review
12 months ago 5:35pm 23 November 2023 - Status changed to RTBC
12 months ago 9:59am 11 December 2023 - πΊπΈUnited States nmangold United States
I was able to reproduce this issue only when the blocks of the same language are non-consecutive. For example, PHP->PHP does not produce the issue, but PHP->PHP->JS->PHP does produce the issue.
The changes in the MR does fix the issue.
-
nmangold β
committed ff1ed36f on 1.1.x authored by
idiaz.roncero β
Issue #3402489 by idiaz.roncero, nmangold: Error when several instances...
-
nmangold β
committed ff1ed36f on 1.1.x authored by
idiaz.roncero β
- Status changed to Fixed
12 months ago 10:01am 11 December 2023 - Status changed to Fixed
11 months ago 5:04pm 1 January 2024 Automatically closed - issue fixed for 2 weeks with no activity.
- π³πΏNew Zealand siramsay
The code didn't make it into the 1.1.1 version of the HighlightJs.php
https://git.drupalcode.org/project/highlightjs_input_filter/-/blob/1.1.x...
JS is fine.
I patched and tested and it works.
'drupalSettings' => [ 'enableCopyButton' => $enable_copy_button, - 'highlightJsLanguages' => $languages, + 'highlightJsLanguages' => array_values(array_unique($languages)), ],