Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8843

Javascript error when loading CustomDatas in foreign languages (french for example)

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.5
    • Fix Version/s: 3.4.6
    • Component/s: Internationalisation
    • Labels:
      None

      Description

      In french
      Create a new multiple-valued custom dataset for a contact record, go to a contact's record, in your custom tab, the datas are loaded through an ajax request which raises a javascript failure.

      The error comes from a non js-escaped string, since the french translation adds " ' ", the javascipt message results in an error.
      adding a escape="js" solves the problem. (should be used for all javascript translated messages.
      See attached patch

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              tonthon tonthon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified