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

Details

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

    Description

      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);

      Attachments

        Issue Links

          Activity

            People

              ankit_frenz Ankit Agarwal
              mazzolal Luca Mazzola
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: