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

Objectives not saving data of identical values in consecutive entrys

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.9.10
    • None
    • SCORM
    • MySQL
    • 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

              danmarsden Dan Marsden
              mr12086 wayne poole
              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: