Skip to content

Commit

Permalink
MDL-46721 assign: Make blind marking participant numbers match
Browse files Browse the repository at this point in the history
Previously emails were setting the "From" header to the incorrect
participant number.
  • Loading branch information
cameorn1730 committed May 24, 2016
1 parent 2c952b2 commit 4ca7fdd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions mod/assign/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -5466,11 +5466,9 @@ public static function send_assignment_notification($userfrom,
* @param int $updatetime
* @return void
*/
public function send_notification($userfrom,
$userto,
$messagetype,
$eventtype,
$updatetime) {
public function send_notification($userfrom, $userto, $messagetype, $eventtype, $updatetime) {
global $USER;
$uniqueid = $this->get_uniqueid_for_user(core_user::is_real_user($userfrom->id) ? $userfrom->id : $USER->id);
self::send_assignment_notification($userfrom,
$userto,
$messagetype,
Expand All @@ -5482,7 +5480,7 @@ public function send_notification($userfrom,
$this->get_module_name(),
$this->get_instance()->name,
$this->is_blind_marking(),
$this->get_uniqueid_for_user($userfrom->id));
$uniqueid);
}

/**
Expand Down

0 comments on commit 4ca7fdd

Please sign in to comment.