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

userquota setting in "Site policies" should be PARAM_INT

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.8.8, 2.9.2, 3.0
    • 2.8.9, 2.9.3
    • Administration
    • MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MDL-51829-master
    • Hide
      1. Login in Moodle as an admin.
      2. Go to Site administration > Security > Site policies.
      3. Enter a non-numeric value and Save the changes. Check that an error is shown saying that the value is not valid.
      4. Enter a numeric value and check that the changes are successfully saved.
      Show
      Login in Moodle as an admin. Go to Site administration > Security > Site policies. Enter a non-numeric value and Save the changes. Check that an error is shown saying that the value is not valid. Enter a numeric value and check that the changes are successfully saved.

    Description

      When defining the userquota setting the type is not specified, so it's set to default: PARAM_RAW. The type should be set to TYPE_INT, otherwise it can cause problems if an invalid value is set.

      Attachments

        Activity

          People

            dpalou Dani Palou
            dpalou Dani Palou
            Marina Glancy Marina Glancy
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Simey Lameze Simey Lameze
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9/Nov/15