Skip to content

Single quote in title breaks Page/TextTags field inside repeater #2065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Laksone opened this issue Apr 19, 2025 · 0 comments
Open

Single quote in title breaks Page/TextTags field inside repeater #2065

Laksone opened this issue Apr 19, 2025 · 0 comments

Comments

@Laksone
Copy link

Laksone commented Apr 19, 2025

I think i found a bug in Page/TextTags field if used inside of a repeater and with default ajax loading enabled if one of the selectable pages contains a single quote ( ' ).

It's not possible to add or expand repeater items and a JS error is shown:
Uncaught SyntaxError: unexpected token: string literal

Steps to reproduce:

  • Add template (for example "event")
  • Add a page with that template and a title containing a single quote ( ' )
  • Create a Page/TextTags field ("event" template as selectable pages)
  • Create a repeater field, add the TextTags field and add it to whatever template
  • Create a page and try to add a new repeater item

This only happens if ajax loading of repeater items is enabled.

Video - Working (Title without quote):
https://github.com/user-attachments/assets/b4f222c4-0b22-4415-81e0-eb44011e048c

Video - Not working (Title containing quote):
https://github.com/user-attachments/assets/2acabef2-a3ff-4b9e-b3ce-f4ec608415c5

ProcessWire Version 3.0.246
PHP Version 8.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant