PluginProbe
Tutor LMS – eLearning and online course solution / 2.0.6
Tutor LMS – eLearning and online course solution v2.0.6
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 trunk 1.0.0 1.0.0-alpha 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 All 191 releases
← All changes | classes/Course.php +1 -1 2.0.52.0.6 View file →
@@ -440,9 +440,9 @@
440 440 $course_id = (int) tutor_utils()->avalue_dot('topic_course_id', $_POST);
441 441 $topic_id = (int) tutor_utils()->avalue_dot('topic_id', $_POST);
442 442 $topic_title = sanitize_text_field( $_POST['topic_title'] );
443 443 $topic_summery = wp_kses_post( $_POST['topic_summery'] );
444 - $next_topic_order_id = tutor_utils()->get_next_topic_order_id($course_id);
444 + $next_topic_order_id = tutor_utils()->get_next_topic_order_id($course_id, $topic_id);
445 445
446 446 // Validate if user can manage the topic
447 447 if(!tutor_utils()->can_user_manage('course', $course_id) || ($topic_id && !tutor_utils()->can_user_manage('topic', $topic_id))) {
448 448 wp_send_json_error( array('message'=>__('Access Denied', 'tutor')) );