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

userquota setting in "Site policies" should be PARAM_INT

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.8, 2.9.2, 3.0
    • Fix Version/s: 2.8.9, 2.9.3
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51829-master

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Nov/15