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

Lesson edit page not calling setType for hidden and text inputs

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.5
    • 2.5
    • Lesson
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-38714_tmp
    • Hide
      1. Set debugger to 'developer'
      2. Create new lesson
      3. Enable 'Allow student review"
      4. Add a matching question
      5. Add a multiple choices question
      6. Edit the existing questions
      7. Attempt the lesson as student
      8. Review the lesson

      Make sure there is no warning for setType() through out the above process.

      Show
      Set debugger to 'developer' Create new lesson Enable 'Allow student review" Add a matching question Add a multiple choices question Edit the existing questions Attempt the lesson as student Review the lesson Make sure there is no warning for setType() through out the above process.

      This now triggers debugging messages since MDL-34311.

      Did you remember to call setType() for 'edit'? Defaulting to PARAM_RAW cleaning.
      line 1266 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 44 of /mod/lesson/editpage_form.php: call to moodleform->moodleform()
      line 2734 of /mod/lesson/locallib.php: call to lesson_add_page_form_selection->__construct()
      line 69 of /mod/lesson/editpage.php: call to lesson_page_type_manager->get_page_form()
      Did you remember to call setType() for 'score[0]'? Defaulting to PARAM_RAW cleaning.
      line 1266 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 2734 of /mod/lesson/locallib.php: call to moodleform->moodleform()
      line 76 of /mod/lesson/editpage.php: call to lesson_page_type_manager->get_page_form()
      Did you remember to call setType() for 'score[1]'? Defaulting to PARAM_RAW cleaning.

            rwijaya Rossiani Wijaya
            damyon Damyon Wiese
            Ankit Agarwal Ankit Agarwal
            Damyon Wiese Damyon Wiese
            Jérôme Mouneyrac Jérôme Mouneyrac
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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