Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-24987

Cannot 'Choose' IMS content package wirh unescaped apostrophes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 1.9.10
    • IMS-CP resource type
    • None
    • LAMP, all up to date, Moodle build: 20101026
    • MOODLE_19_STABLE

      Cannot 'Choose' an IMS content package with unescaped apostrophes, but can still previewit.

      Expected behaviour is usual IMS content package behaviour.

      Actual behaviour: Go to course, click Add a new IMS Content Package. Add a title. Click Browse Repository. Click folder, click Choose, nothing happens.

      Pulling the HTML code for the broken item gives the following, noting that there are extra apostrophes in the word "children's" both in plain text and within the javascript onClick event handler:

      <li><img src="images/ims.gif" alt="IMS CP Package" /> L3 Diploma for CYPW TRP - CYP3.3 Safeguard children's well-being(<a onclick="set_opener_value('id_reference_value', '#/Children and Young People/vle0435031237_L3Dip_CYPW_TRP_3_3', true); set_opener_value('id_name', 'L3 Diploma for CYPW TRP - CYP3.3 Safeguard children's well-being', false); window.close()" href="#">Choose</a>) (<a href="preview.php?directory=/Children and Young People/vle0435031237_L3Dip_CYPW_TRP_3_3&choose=id_reference_value">Preview</a>)</li>

            danmarsden Dan Marsden
            vaughany Paul Vaughan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.