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

Form validation fails when creating a data registry purpose with an empty value for "Sensitive personal data processing reasons"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.7, 3.6.5, 3.7.1
    • Fix Version/s: 3.5.8, 3.6.6, 3.7.2
    • Component/s: Privacy
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as admin or as the Privacy Officer.
      2. Go to Site administration / Users / Privacy and policies / Data registry.
      3. Create a new purpose.
      4. Fill the required fields. Make sure that "Sensitive personal data processing reasons" is blank.
      5. Try to save the form.
      6. Confirm that the purpose is created.
      7. Repeat with various scenarios and confirm that the value for the "Sensitive data processing reasons" are being saved accordingly:
        • Editing a purpose without "Sensitive personal data processing reasons" and selecting one or more reasons.
        • Creating a purpose with "Sensitive personal data processing reasons" set.
        • Editing a purpose with "Sensitive personal data processing reasons" and removing the reasons.
      Show
      Log in as admin or as the Privacy Officer. Go to Site administration / Users / Privacy and policies / Data registry. Create a new purpose. Fill the required fields. Make sure that " Sensitive personal data processing reasons " is blank. Try to save the form. Confirm that the purpose is created. Repeat with various scenarios and confirm that the value for the " Sensitive data processing reasons " are being saved accordingly: Editing a purpose without " Sensitive personal data processing reasons " and selecting one or more reasons. Creating a purpose with " Sensitive personal data processing reasons " set. Editing a purpose with " Sensitive personal data processing reasons " and removing the reasons.
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull 3.5 Branch:
    • Pull 3.6 Branch:
    • Pull 3.7 Branch:
    • Pull Master Branch:
      MDL-66281-master

      Description

      To reproduce:

      1. Log in as admin or as the Privacy Officer.
      2. Go to Site administration / Users / Privacy and policies / Data registry.
      3. Create a new purpose.
      4. Fill the required fields. Make sure that "Sensitive personal data processing reasons" is blank.
      5. Try to save the form.
      6. Expected: The purpose is created.
      7. Actual: You'll see a validation error, "Data submitted is invalid" which prevents you from creating the purpose that does not require the reason for the processing of sensitive data.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Sep/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 10 minutes
                2h 10m