Uploaded image for project: 'Providence'
  1. PROV-1179

Bundle previews break user interface when single quotes are in current value

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects versions: 1.5
    • Fix versions: 1.5
    • Components: UI
    • Labels:
      None

      Description

      When a value contains a single quote (apostrophe) the enter editor UI is broken due to Javascript errors. This is the code in the ca_object_labels_preferred.php bundle that is causing the error, due to a unescaped quotes:

      bundlePreview: '<?php print addslashes(strip_tags(html_entity_decode(current($va_initial_values)['name']))); ?>',

      I'd bet there are others but haven't looked.

        Attachments

          Activity

            People

            • Assignee:
              Stefan Keidel
              Reporter:
              Former user (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: