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

Empty row being shown in user's policies page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.5
    • Component/s: Privacy
    • Labels:
    • Testing Instructions:
      Hide

      Setup

      1. Log in as admin.
      2. Access to "Site administration | Privacy and policies | Policy settings" and set site policy handler to “Policies (tool_policy)”.
      3. Create a policy and set as active.
      4. Go to "Site administration / Privacy and policies / Manage policies"
      5. Create a policy, Policy 1. Make this policy active.
      6. In another browser session (e.g. incognito), log in as a user s, agree to this policy and log out.
      7. Back to the admin's browser, deactivate Policy 1
      8. Create another policy, Policy 2. Make this policy active.

      Testing scenario

      1. In s1's browser, log in again. Agree to Policy 2.
      2. Go to your profile page and click "Policies and agreements"
        • CHECK you only see Policy 2 listed on the table and there isn't a blank row before it.
      Show
      Setup Log in as admin. Access to "Site administration | Privacy and policies | Policy settings" and set site policy handler to “Policies (tool_policy)”. Create a policy and set as active. Go to "Site administration / Privacy and policies / Manage policies" Create a policy, Policy 1. Make this policy active. In another browser session (e.g. incognito), log in as a user s, agree to this policy and log out. Back to the admin's browser, deactivate Policy 1 Create another policy, Policy 2. Make this policy active. Testing scenario In s1's browser, log in again. Agree to Policy 2. Go to your profile page and click "Policies and agreements" CHECK you only see Policy 2 listed on the table and there isn't a blank row before it.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-62281-master

      Description

      To reproduce:

      1. Log in as admin.
      2. Go to "Site administration / Privacy and policies / Manage policies"
      3. Create a policy, Policy 1. Make this policy active.
      4. In another browser session (e.g. incognito), log in as a user s1 and agree to this policy.
      5. Back to the admin's browser, deactivate Policy 1
      6. Create another policy, Policy 2. Make this policy active.
      7. In s1's browser, log out, then log in again.
      8. Agree to Policy 2.
      9. Go to your profile page and click "Policies and agreements"
      10. Expected: You should only see Policy 2 listed on the table and there shouldn't be a blank row.
      11. Actual: There is a blank row

        Attachments

        1. 62281-after.png
          62281-after.png
          60 kB
        2. 62281-before.png
          62281-before.png
          71 kB
        3. user-view.png
          user-view.png
          48 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/18