Issue
Description
When transferring an HR Case from one HR service to another, the Transfer Case modal dialog encounters errors when:
- The transferred to HR Service or Topic Category contains an apostrophe character (') in the name.
- The global sys property glide.ui.escape_all_script is set to false.
Steps to Reproduce
- Log in as admin.
- Navigate to sys_properties.list.
- Search and view sys property glide.ui.escape_all_script.
- Change the value to false.
- Log out.
- Log in as HR Admin.
- Create a new HR service or edit an existing HR service that contains an apostrophe character (') in the name.
- Open an active HR case and click the Transfer Case option in the form context menu.
- The Transfer Case dialog is displayed, but the Transfer Case to dropdown does not render properly, and a browser error displays (see attachments).
Workaround
Escape services object by add prefix JS to services object in jelly.
var services = '${JS:servicesString}';
Additional information
The documentation topic Jelly escaping types has more information about escaping types in Jelly.