From 5aba3d6df98e4274e7a424e2186d4116d13ff52c Mon Sep 17 00:00:00 2001 From: Adam Olley Date: Sat, 28 Jul 2012 14:10:54 +0930 Subject: [PATCH] MDL-34647: admintool: uploaduser enrolments now obey enrolperiod directive --- admin/tool/uploaduser/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/tool/uploaduser/index.php b/admin/tool/uploaduser/index.php index ec692e227fa..380db457060 100644 --- a/admin/tool/uploaduser/index.php +++ b/admin/tool/uploaduser/index.php @@ -857,6 +857,8 @@ if ($formdata = $mform2->is_cancelled()) { if ($duration > 0) { // sanity check $timeend = $today + $duration; } + } else if ($manualcache[$courseid]->enrolperiod > 0) { + $timeend = $today + $manualcache[$courseid]->enrolperiod; } $manual->enrol_user($manualcache[$courseid], $user->id, $rid, $today, $timeend);