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

Problems with Moodle XML import/export of calculated questions with shared datasets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.5.1
    • Fix Version/s: STABLE backlog
    • Component/s: Questions
    • Labels:
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      While testing parts of MDL-39507, I got some errors. This bug is to investigate them.

      For a shared databset we output:

      <dataset_definition>
          <status><text>shared</text>
      </status>
          <name><text>p</text>
      </name>
          <type>calculated</type>
          <distribution><text>uniform</text>
      </distribution>
          <minimum><text>1.0</text>
      </minimum>
          <maximum><text>10.0</text>
      </maximum>
          <decimals><text>1</text>
      </decimals>
          <itemcount>0</itemcount>
      </dataset_definition>
      

      But the import code in import_calculated in question/format/xml/format.php assumes <number_of_items> and <dataset_items> tags are present.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              timhunt Tim Hunt
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: