This commit is contained in:
PMKuipers 2023-07-30 15:47:19 +02:00
parent 83014fb9ac
commit 21306c0bc3

View file

@ -1213,10 +1213,13 @@ class studyplanservice extends \external_api
if(webservicehelper::has_capabilities("moodle/course:update",$coursecontext)){
// Actually perform the timing changes, while also updating the module times
// Like what happens on a course "reset"
$status = reset_course_userdata([
$status = reset_course_userdata((object)[
'id' => $course->id,
'reset_start_date' => $pstart->startdate()->getTimestamp(),
'reset_end_date' => $pend->enddate()->getTimestamp(),
'reset_start_date_old' => $course->startdate,
'reset_end_date_old' => $course->enddate,
]);
// TODO: parse status