PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.0
2.11.0 2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 All 78 releases
← All changes | Modules/Course/Http/Controllers/CourseAdminController.php +1 -5 2.11.02.10.0 View file →
@@ -607,13 +607,9 @@
607 607 'message' => __('This student is not enrolled in this course.', 'fluent-community'),
608 608 ]);
609 609 }
610 610
611 - if (!CourseHelper::resetCourseProgress($courseId, (int) $studentId)) {
612 - return $this->sendError([
613 - 'message' => __("Student's progress could not be reset. Please try again.", 'fluent-community'),
614 - ]);
615 - }
611 + CourseHelper::resetCourseProgress($courseId, (int) $studentId);
616 612
617 613 return [
618 614 'message' => __("Student's progress has been reset.", 'fluent-community'),
619 615 ];