Automattic / sensei

Sensei LMS - Online Courses, Quizzes, & Learning
https://senseilms.com
GNU General Public License v2.0
530 stars 197 forks source link

Polylang: All Translations of a Lesson Are Assigned to the Same Course #7604

Open igotdes opened 3 months ago

igotdes commented 3 months ago

Steps to Reproduce

  1. Set up Polylang with at least two languages. In these steps, we will use English and Italian, with English as the default language.
  2. Create a course in English.
  3. Create an Italian translation of the English course.
  4. Create a lesson under the English course.
  5. Create an Italian translation of the English lesson.
  6. Make sure the Italian lesson is assigned to the Italian course.
  7. Both the English and Italian lessons are assigned to the Italian course.
  8. Assign the English lesson to the English course.
  9. Both the English and Italian lessons are assigned to the English course.

What I Expected

I should be able to assign a lesson to a course without reassigning other lessons in the process.

What Happened Instead

Lessons appear to be linked. Assigning one lesson also reassigns versions of it in another language.

PHP / WordPress / Sensei LMS version

Browser / OS version

Chrome Version 124.0.6367.208 (Official Build) (arm64) macOS 14.1.2 (23B92)

Screenshot / Video

ScreenCaptureon2024-05-21at12-57-28-ezgif com-resize

Context / Source

Reported in 8214804-zd-a8c

github-actions[bot] commented 3 months ago

Support References

This comment is automatically generated. Please do not edit it.