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

Scorm chart report uses a hardcoded maxgrade value

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: SCORM
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_31_STABLE

      Description

      In scorm/report/graphs/graph.php:

                      if (empty($trackdata->score_max)) {
                          $maxmark = 100;
                      } else {
                          $maxmark = $trackdata->score_max;
                      }
      

      We can see that the score_max is set to 100, not considering the maxgrade value set when editing the settings of the activity itself. This often leads to an irrelevant graph where all my students are in the 0-10 bracket, rather than being spread across. Should we update the hardcoded 100 to use the activity settings?

      I've noticed that while working on MDL-54989.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  fred Frédéric Massart
                  Participants:
                  Component watchers:
                  Dan Marsden, Matteo Scaramuccia, David Mudrák, Sara Arjona
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated: