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

Importing questions producing invalid question names and not saving

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.9.10
    • Questions
    • Moodle 1.9.10+ (build 20101103)
    • MySQL
    • MOODLE_19_STABLE

      When importing questions (in this case in Blackboard format), the question names are generated from the question text if not provided. The question name is truncated by character length, but if question text contains HTML, the character boundary can occur within an HTML tag and create an invalid question name. In this case, Moodle gives the error, "Cannot insert question". I realize there are many different solutions to this "problem." The attached patch is the path we have chosen, but we would much prefer to adopt a change from upstream.

        1. question_format.patch
          0.6 kB
          Vikram Dighe
        2. res00001.dat
          194 kB
          Vikram Dighe

            timhunt Tim Hunt
            vdighe Vikram Dighe (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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