Moodle

Profile URL in the welcome message sometimes has wrong userid

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: 1.7.7, 1.8.8, 1.9.4
  • Component/s: Enrolments
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    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.

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Great, thanks Francois!

Show
Eloy Lafuente (stronk7) added a comment - Great, thanks Francois!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: