MDL-46721 assign: Make blind marking participant numbers match

Previously emails were setting the "From" header to the incorrect
participant number.
This commit is contained in:
Cameron Ball
2016-05-24 18:25:35 +08:00
parent 2772b598b8
commit 806a93abdc
+4 -6
View File
@@ -4990,11 +4990,9 @@ class assign {
* @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,
@@ -5006,7 +5004,7 @@ class assign {
$this->get_module_name(),
$this->get_instance()->name,
$this->is_blind_marking(),
$this->get_uniqueid_for_user($userfrom->id));
$uniqueid);
}
/**