Skip to content

Fix: Skip Next and Continue Lesson button#2664

Open
Anindra123 wants to merge 1 commit into4.0.0-devfrom
continue_lesson_fix
Open

Fix: Skip Next and Continue Lesson button#2664
Anindra123 wants to merge 1 commit into4.0.0-devfrom
continue_lesson_fix

Conversation

@Anindra123
Copy link
Copy Markdown
Collaborator

The method $this->get_course_contents_by_id( $course_id ); was getting all the content based on topic id and grouping it based on the menu_order, thus if two topic have menu order 1,2,3,4,5, the order the content were coming in was like 1,1,2,2,3,3,4,4...etc. Therefore when click Skip Assignment or Continue lesson it was going to the next topic assignment or quiz. To fix this instead of getting all the content and grouping, i had looped over the individual topics course content since it is sorted and added those course content in the sorted order defined in the topic

@Anindra123 Anindra123 requested a review from harunollyo May 6, 2026 06:50
@Anindra123 Anindra123 added the 4.0.0 Tutor v4.w0w label May 6, 2026
@Anindra123 Anindra123 requested a review from shewa12 May 8, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0.0 Tutor v4.w0w

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant