Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.3.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:
Description
Creating a custom field with a single quote in its name (in French), CRM.help causes a "SyntaxError: unterminated string literal" when the help icon for that field is clicked.
How to reproduce:
- create a field called "L'apostrophe" applied to a contact record
- on a contact record, click on the help icon for that field.
For example:
https://sandbox.drupal.civicrm.org/civicrm/contact/add?reset=1&context=search&action=update&cid=328
I checked in CRM/Core/Smarty/plugins/function.help.php, tried things such as:
$name = addslashes($name), but it didn't do much good, the string seems to be truncated after a single quote.