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

Profile URL in the welcome message sometimes has wrong userid

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.3
    • 1.7.7, 1.8.8, 1.9.4
    • Enrolments
    • None
    • MOODLE_19_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      The email_welcome_message_to_user() function takes a user as the last parameter.

      However, it ignores that parameter when creating the profile URL:

      $a->profileurl = "$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id";

      Therefore the link will be wrong if an admin enrols a user manually for example.

      Attachments

        Activity

          People

            francois Francois Marier
            francois Francois Marier
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              28/Jan/09