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

Fix missing calls to setType in enrolment methods

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major Major
    • 2.5
    • 2.5
    • Enrolments
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-38821_master
    • Hide

      Prerequisites: Paypal, self, manual and cohort enrolment methods enabled at system level

      1. Set debugging to developer level
      2. Open a course and go to Course administration -> Users -> Enrolment methods
      3. For each of the following methods: paypal, self, manual and cohort:
        1. Open the enrolment method form page (add or edit an existing one)
        2. You SHOULD NOT see any debugging message
      Show
      Prerequisites: Paypal, self, manual and cohort enrolment methods enabled at system level Set debugging to developer level Open a course and go to Course administration -> Users -> Enrolment methods For each of the following methods: paypal, self, manual and cohort: Open the enrolment method form page (add or edit an existing one) You SHOULD NOT see any debugging message

      After MDL-34311 there are a few enrolment methods forms that needs additional setType calls.

      I haven't checked all the enrolment methods, attaching backtrace of the ones I've found.

      Did you remember to call setType() for 'name'? Defaulting to PARAM_RAW cleaning.
      line 1275 of /lib/formslib.php: call to debugging()
      line 919 of /lib/formslib.php: call to moodleform->detectMissingSetType()
      line 147 of /enrol/self/edit.php: call to moodleform->display()
      

      Did you remember to call setType() for 'courseid'? 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 72 of /enrol/manual/edit.php: call to moodleform->moodleform()
      

       
      Did you remember to call setType() for 'name'? Defaulting to PARAM_RAW cleaning.
      line 1275 of /lib/formslib.php: call to debugging()
      line 919 of /lib/formslib.php: call to moodleform->detectMissingSetType()
      line 105 of /enrol/cohort/edit.php: call to moodleform->display()
      

      Did you remember to call setType() for 'name'? 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 61 of /enrol/paypal/edit.php: call to moodleform->moodleform()
      Did you remember to call setType() for 'cost'? 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 61 of /enrol/paypal/edit.php: call to moodleform->moodleform()
      Did you remember to call setType() for 'id'? 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 61 of /enrol/paypal/edit.php: call to moodleform->moodleform()
      Did you remember to call setType() for 'courseid'? 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 61 of /enrol/paypal/edit.php: call to moodleform->moodleform()
      

            dmonllao David Monllaó
            dmonllao David Monllaó
            Dan Poltawski Dan Poltawski
            Jason Fowler Jason Fowler
            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.