Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34311 Improve debugging when using default cleaning
  3. MDL-38744

Course completion form not calling setType for criteria_grade_value and locale aware floats

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major Major
    • 2.5
    • 2.5
    • Course completion
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-38744-master
    • Hide
      1. Edit course settings
      2. In course settings > completion progress > set completion progress to enabled
      3. Go to course settings > completion tracking
      4. VERIFY: no debugging message is displayed
      5. In the Course grade section, set to enabled and add a float value in the grade section
      6. Save the settings
      7. VERIFY: the grade is saved by browsing back to the form
      8. Change your language to french
      9. Add a decimal value using a ','
      10. VERIFY the value is saved
      Show
      Edit course settings In course settings > completion progress > set completion progress to enabled Go to course settings > completion tracking VERIFY: no debugging message is displayed In the Course grade section, set to enabled and add a float value in the grade section Save the settings VERIFY: the grade is saved by browsing back to the form Change your language to french Add a decimal value using a ',' VERIFY the value is saved

      This now triggers debugging messages since MDL-34311.

      Did you remember to call setType() for 'criteria_grade_value'? Defaulting to PARAM_RAW cleaning.
      * line 1275 of /lib/formslib.php: call to debugging()
      * line 281 of /lib/formslib.php: call to moodleform->detectMissingSetType()
      * line 202 of /lib/formslib.php: call to moodleform->_process_submission()
      * line 73 of /course/completion.php: call to moodleform->moodleform()
      

            poltawski Dan Poltawski
            dmonllao David Monllaó
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            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.