Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-28443 Action logging improvements META
  3. MDL-20733

When creating a new user, the log doesn't include the id of the newly created user

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.9.5
    • Other
    • None
    • independent
    • MySQL
    • MOODLE_19_STABLE
    • Easy

      When creating a new user, the log registered doesn't include the id of the newly created user,
      I suggest to use the Info field to store this information.
      In attach I provide a new version of the 'user/editadvanced.php' file that could offer this minor enhancement: it is based on the movement of the line

      add_to_log($course->id, 'user', 'update', "view.php?id=$user->id&course=$course->id", '');

      from line 80 to line 104 (with the use of the variable $usernew->id for memorizing the new user's id)

      add_to_log($course->id, 'user', 'update', "view.php?id=$user->id&course=$course->id", $usernew->id);

            ankit_frenz Ankit Agarwal
            mazzolal Luca Mazzola (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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