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

Don't allow bulk deletion of managed cohorts

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5 regressions, 4.5.4, 5.0
    • Cohorts
    • MOODLE_405_STABLE, MOODLE_500_STABLE
    • MDL-85348-405
    • MDL-85348-500
    • Hide

      Pre-requisites

      1. Requires access to your database to simulate a "managed cohort" (e.g. one whose component field is non-empty)

      Test

      1. Log in as admin
      2. Navigate to Users > Cohorts in site administration
      3. Create two new cohorts
      4. Open your database editor tool, view the mdl_cohort table
      5. Amend the component field of the second cohort you created to: tool_uploaduser
      6. View the list of cohorts in Moodle
      7. Confirm you see a bulk deletion checkbox for your first cohort
      8. Confirm you do not see a bulk deletion checkbox for your second cohort (the "managed" cohort)
      Show
      Pre-requisites Requires access to your database to simulate a "managed cohort" (e.g. one whose component field is non-empty) Test Log in as admin Navigate to Users > Cohorts in site administration Create two new cohorts Open your database editor tool, view the mdl_cohort table Amend the component field of the second cohort you created to: tool_uploaduser View the list of cohorts in Moodle Confirm you see a bulk deletion checkbox for your first cohort Confirm you do not see a bulk deletion checkbox for your second cohort (the "managed" cohort)
    • Hide

      Code verified against automated checks.

      Checked MDL-85348 using repository: https://github.com/paulholden/moodle

      More information about this report

      Built on: Mon Jun 9 08:38:23 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-85348 using repository: https://github.com/paulholden/moodle MOODLE_405_STABLE (0 errors / 0 warnings) [branch: MDL-85348-405 | CI Job ] MOODLE_500_STABLE (0 errors / 0 warnings) [branch: MDL-85348-500 | CI Job ] main (0 errors / 0 warnings) [branch: MDL-85348 | CI Job ] More information about this report Built on: Mon Jun 9 08:38:23 UTC 2025

      Basically the same as MDL-78071 - where "managed cohorts" are those that belong to a component

      For the above, we don't show the editing menu (Hide/Edit/Delete/Assign, etc) - but the bulk deletion from MDL-52046 does allow for them to be deleted

      We should be consistent, and not provide the option to bulk delete these "managed cohorts"

            pholden Paul Holden
            pholden Paul Holden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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