Form Builder crashes trying to edit Mosaico Templates form.
Overview
Editing the "Mosaico Templates" form provided by the Mosaico extension causes an AngluarJS crash in Form Builder.
Reproduction steps
- Use Civi 5.57, mosaico ext 2.10.1665574809
- Go to Administer » Custom » Form Builder » Search Forms » Edit on the
afsearchMosaicoTemplateList
one - Crash.
Current behaviour
Console log first error (there's lots, but I expect it's the first one that causes the others)
Syntax Error: Token '{' invalid key at column 2 of the expression [{{ts('Configure template categories')}}] starting at [{ts('Configure template categories')}}].
Expected behaviour
Should be able to edit the form.
Environment information
- Browser: Firefox 110.0b5
- CiviCRM: 5.57
- PHP: 7.4
- CMS: D7
Comments
If I edit the .html file in question and remove the {{ }} parts then it's happy. But those {{ }} parts do work when the form is presented; just not in the editor.
I believe this is a core bug and not to do with mosaico.