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

SCORM interactions report columns errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7
    • Fix Version/s: STABLE backlog
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      Hide
      • Create a SCORM activity with the attached SCORM package.
      • Enter the SCORM in Normal mode.
      • Click on "q2" and answer two of the three questions.
      • Go to the SCORM's reports page and select Interactions report.

      Go through MDLQA-10183 again.

      Also check "user interactions" report for both packages - in the main report showing all users click on a link in the "attempt" column to view an individual user report, then select the "interactions" tab on the user report view.

      make sure no debug notices appear and the relevant interaction data is shown.

      Show
      Create a SCORM activity with the attached SCORM package. Enter the SCORM in Normal mode. Click on "q2" and answer two of the three questions. Go to the SCORM's reports page and select Interactions report. Go through MDLQA-10183 again. Also check "user interactions" report for both packages - in the main report showing all users click on a link in the "attempt" column to view an individual user report, then select the "interactions" tab on the user report view. make sure no debug notices appear and the relevant interaction data is shown.
    • Affected Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      master_MDL-45317

      Description

      This bug appears the same as MDL-36855, but it is caused by a different problem, and a different SCORM package.

      To reproduce:

      • Create a SCORM activity with the attached SCORM package.
      • Enter the SCORM in Normal mode.
      • Click on "q2" and answer two of the three questions.
      • Go to the SCORM's reports page and select Interactions report.

      The errors look similar to this:
      Notice: Undefined offset: 13 in /home/nathanl/sites/moodle/lib/tablelib.php on line 1057

      I tracked down the problem. It is in mod/scorm/report/interactions/report.php -> scorm_interactions_report class -> display function. The column headers ($columns) are calculated as:

      • Regular columns (everything down to and including "score").
      • SCO grades (one per SCO where [$sco->launch != ''], the test SCORM contains 3).
      • Question columns (for all questions in the SCORM?)
        Each data row ($row) is calculated as follows:
      • Add regular columns (down to "score")
      • For each SCO where [$sco->launch != '']:
        • If "trackdata" exists then add one column for the SCO and one column for each question.
        • Otherwise, add columns until the row has been filled.

      The problem occurs when a SCO with no "trackdata" (which fills the row until full) is followed by one which has a value (which adds one or more columns, overflowing the row). There is also be a problem if two SCOs with "trackdata" exist, as both will add one column for each question (I think).

        Attachments

        1. 3_scos.zip
          1.34 MB
        2. Selection_014.png
          Selection_014.png
          62 kB

          Activity

            People

            • Assignee:
              danmarsden Dan Marsden
              Reporter:
              nathanl Nathan Lewis
              Participants:
              Component watchers:
              Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: