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

No log entry is produced when a teacher unenrols a student manually

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 2.2
    • Enrolments, Logging
    • MOODLE_22_STABLE
    • Hide

      Could be changed by adding add_to_log(...);

      enrol/unenroluser.php line:69f

      if ($confirm && confirm_sesskey()) {
          $plugin->unenrol_user($instance, $ue->userid);
      	add_to_log($course->id, 'course', 'unenrol', '../enrol/users.php?id='.$course->id, 'unenrol userid '.$ue->userid); //there should be userid somewhere!
          redirect($returnurl);
      }

      Show
      Could be changed by adding add_to_log(...); enrol/unenroluser.php line:69f if ($confirm && confirm_sesskey()) { $plugin->unenrol_user($instance, $ue->userid); add_to_log($course->id, 'course', 'unenrol', '../enrol/users.php?id='.$course->id, 'unenrol userid '.$ue->userid); //there should be userid somewhere! redirect($returnurl); }
    • Hide

      visit course administration->users->enrolled users
      unenrol any user by clicking "unenrol" in the column "Enrollment methods".
      View latest log in mdl_log --> you will not find any hint.

      Show
      visit course administration->users->enrolled users unenrol any user by clicking "unenrol" in the column "Enrollment methods". View latest log in mdl_log --> you will not find any hint.

      If a teacher unenrolls a student while viewing course administration->users->enrolled users, no log entry is produced. This can be a problem when users are unenrolled and the agent can not be identified.

      While self unenrollment produces a log entry (enrol/manual/unenrolself.php:line 54), unenrollment by staff (enrol/unenroluser.php:line 69f) will not produce any logging.

      Could be changed by adding add_to_log(...);

      enrol/unenroluser.php line:69f

      if ($confirm && confirm_sesskey()) {
          $plugin->unenrol_user($instance, $ue->userid);
      	add_to_log($course->id, 'course', 'unenrol', '../enrol/users.php?id='.$course->id, 'unenrol userid '.$ue->userid); //there should be userid somewhere!
          redirect($returnurl);
      }

            Unassigned Unassigned
            super3d Claus A. Us.
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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