If you move a lesson from one course and module to a different course that doesn't have any modules, the lesson does not appear at Lessons > Order Lessons for either the new or old course.
Steps to repro:
I expected to see the moved lesson in the list for the course I just moved it to.
Reported in 575442-zd-woothemes
Somewhat related: 600210-zd-woothemes. Though in the case the user has simply added lessons after the course was live. :/
This was an issue with the module not being set/unset properly when the lesson was moved. The UI change in #1891 should fix it for most of our users moving forward.
@pgk do you think the UI-level fix should be enough for now? Or should we do some backend checks/tests as well, in case e.g. the user has Javascript disabled and the frontend functionality doesn't work?
cc @dbtlr
@alexsanford IMHO you should always back client-side limitations with server-side validation, otherwise, you find yourself with unintended consequences when people start playing around with things.
@dbtlr I agree. I'll dive in 馃槃
do you think the UI-level fix should be enough for now?
I would check for an inconsistent lesson/module state on the lesson save hook just before updating lesson course.