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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1
    • 3.1
    • Competencies
    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-53920_master
    • 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.

      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.

            markn Mark Nelson
            jpataleta Jun Pataleta
            Frédéric Massart Frédéric Massart
            Andrew Lyons Andrew Lyons
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.