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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.5.1
    • Questions
    • MOODLE_25_STABLE

      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.

            Unassigned Unassigned
            timhunt Tim Hunt
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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