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

Include "enrol" field to groups_members table to identify enrol plugins that created the record

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Minor
    • None
    • 1.9.6
    • Groups
    • None
    • MOODLE_19_STABLE

    Description

      Here at Federal University of Brasil, we are developing an enroll plugin to automatic create users and courses and enroll/unenroll user in courses. Once we have the "enroll" field in role_assignments, we just do a left join with our table and know wich ones was included by our script and need to be removed.
      Now we have to enrol/unenrol user in/from groups, but we don't have that "enrol" field to identify which users were enrolled by our script and which ones was manual.
      So, i suggest (and can upload a trivial patch) to add the field "enrol VARCHAR(20) DEFAULT 'manual' " to the "groups_members" table and add a parameter to groups_add_member() function to specify the enrollment plugin.

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda (Inactive)
              danielneis Daniel Neis Araujo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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