sensei
sensei copied to clipboard
Lesson: Resetting Multilingual Lesson Versions Causes Data Loss
Steps to Reproduce
- Install Sensei LMS version 4.20.2 or higher.
- Create a course with at least one lesson.
- Set up PolyLang to manage multiple languages.
- Create different pages in multiple languages for a lesson using PolyLang.
- Attempt to save or modify a lesson in a language other than the default one.
What I Expected
The other language versions of the lesson should remain intact after saving or modifying the lesson in a specific language.
What Happened Instead
The other language versions of the lesson are reset, and the records of COURSE, MODULE, and PREREQUISITE corresponding to them are deleted from the database when saving or modifying the lesson in a specific language.
PHP / WordPress / Sensei LMS version
PHP version: 7.2 WordPress version: 6.4.3 Sensei LMS version tested: 4.22.0 (NOT WORKING) - 4.20.2 (WORKING)