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

Objectives not saving data of identical values in consecutive entrys

XMLWordPrintable

    • MySQL
    • MOODLE_19_STABLE

      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.

            danmarsden Dan Marsden
            mr12086 wayne poole
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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