sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Lesson: Resetting Multilingual Lesson Versions Causes Data Loss

Open LluisR opened this issue 1 year ago • 2 comments

Steps to Reproduce

  1. Install Sensei LMS version 4.20.2 or higher.
  2. Create a course with at least one lesson.
  3. Set up PolyLang to manage multiple languages.
  4. Create different pages in multiple languages for a lesson using PolyLang.
  5. 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)

LluisR avatar Mar 26 '24 15:03 LluisR