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

Importing questions producing invalid question names and not saving

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.9.10
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
    • Environment:
      Moodle 1.9.10+ (build 20101103)
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: