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

Objectives not saving data of identical values in consecutive entrys

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.9.10
    • Fix Version/s: None
    • Component/s: SCORM
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      Any data entered into an objective if it is the same values as in the earlier entry it is not saved to the database.

      e.g.
      cmi.objectives.0.id = 'one'
      cmi.objectives.0.score.max = '100'
      cmi.objectives.0.score.raw = '0'

      cmi.objectives.1.id = 'two'
      cmi.objectives.1.score.max = '100'
      cmi.objectives.1.score.raw = '0'

      cmi.objectives.1.id = 'three'
      cmi.objectives.1.score.max = '100'
      cmi.objectives.1.score.raw = '0'

      This could easily be an initiation of the objectives, but the data that is stored is:

      cmi.objectives.0.id = 'one'
      cmi.objectives.0.score.max = '100'
      cmi.objectives.0.score.raw = '0'
      cmi.objectives.1.id = 'two'
      cmi.objectives.1.id = 'three'

      Only the unique values are saved, any same values in consecutive objectives are omitted.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              danmarsden Dan Marsden
              Reporter:
              mr12086 wayne poole
              Participants:
              Component watchers:
              Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: