Tweaks
This commit is contained in:
parent
83014fb9ac
commit
21306c0bc3
1 changed files with 4 additions and 1 deletions
|
@ -1213,10 +1213,13 @@ class studyplanservice extends \external_api
|
||||||
if(webservicehelper::has_capabilities("moodle/course:update",$coursecontext)){
|
if(webservicehelper::has_capabilities("moodle/course:update",$coursecontext)){
|
||||||
// Actually perform the timing changes, while also updating the module times
|
// Actually perform the timing changes, while also updating the module times
|
||||||
// Like what happens on a course "reset"
|
// Like what happens on a course "reset"
|
||||||
$status = reset_course_userdata([
|
$status = reset_course_userdata((object)[
|
||||||
'id' => $course->id,
|
'id' => $course->id,
|
||||||
'reset_start_date' => $pstart->startdate()->getTimestamp(),
|
'reset_start_date' => $pstart->startdate()->getTimestamp(),
|
||||||
'reset_end_date' => $pend->enddate()->getTimestamp(),
|
'reset_end_date' => $pend->enddate()->getTimestamp(),
|
||||||
|
'reset_start_date_old' => $course->startdate,
|
||||||
|
'reset_end_date_old' => $course->enddate,
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// TODO: parse status
|
// TODO: parse status
|
||||||
|
|
Loading…
Reference in a new issue