If a teacher creates a course but does not include any units (some teachers may do this) it is not possible for the student to click End Course > it takes the student to the lesson page with the action button showing Continue Course and there whole process becomes circular.
What code can i add so it ends the lesson?
YEs it will not possible to students to finish the course as the error appears there "No curriculum set " .
In that case user can leave the course by clikcing on the back to course button or any links on top menu .
As of now there is no such option is available to make the course force finished by the student in case no curriculum is set .
In this case we really the create unit feature to be compulsory in create course.
How can we doe this?
Sorry this is not possible as of now in wplms .
Please create a feature request for this here :
https://wplms.io/support/forums/forum/general/feature-request/