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

Number of cohorts in a learning plan template is not updated after cohort deletion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: Competencies
    • Labels:
    • Testing Instructions:
      Hide
      Test 1
      1. Go to Site administration ► Users ► Accounts ► Cohorts.
      2. Create a new cohort and add users to it.
      3. Navigate to Site administration ► Competencies ► Learning plan templates.
      4. Add a new learning plan template.
      5. Go back to the list of learning plan templates.
      6. Click on the link under the 'Cohorts' column.
      7. Under 'Select cohorts to sync' select the cohort you created earlier.
      8. Go to Site administration ► Users ► Accounts ► Cohorts.
      9. Delete the cohort.
      10. Navigate to Site administration ► Competencies ► Learning plan templates.
      11. Check the count of cohort is 0.
      Test 2
      1. Run the unit tests in competency/tests/hooks_test.php and ensure all passes.
      Show
      Test 1 Go to Site administration ► Users ► Accounts ► Cohorts. Create a new cohort and add users to it. Navigate to Site administration ► Competencies ► Learning plan templates. Add a new learning plan template. Go back to the list of learning plan templates. Click on the link under the 'Cohorts' column. Under 'Select cohorts to sync' select the cohort you created earlier. Go to Site administration ► Users ► Accounts ► Cohorts. Delete the cohort. Navigate to Site administration ► Competencies ► Learning plan templates. Check the count of cohort is 0. Test 2 Run the unit tests in competency/tests/hooks_test.php and ensure all passes.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-53920_master

      Description

      Steps to reproduce
      1. Go to Site administration ► Users ► Accounts ► Cohorts
      2. Create a new cohort Cohort1 and add users to it.
      3. Open a new browser tab and navigate to Site administration ► Competencies ► Learning plan templates
      4. Add a new learning plan template LP1
      5. Go back to the list of learning plan templates.
      6. Click on the link under the Cohorts column for LP1.
      7. Under Select cohorts to sync, select the Cohort1.
      8. Go back to the Cohorts browser tab and delete Cohort1.
      9. Go back to the Template list browser tab, refresh the page and check the count of Cohorts for LP1.
        • Number shows 1 instead of 0.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                markn Mark Nelson
                Reporter:
                jpataleta Jun Pataleta
                Peer reviewer:
                Frédéric Massart
                Integrator:
                Andrew Nicols
                Tester:
                Jun Pataleta
                Participants:
                Component watchers:
                Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16