Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson: Duplicating a lesson with a quiz ends up overriding the original lesson's quiz #7674

Closed
jonathanbossenger opened this issue Sep 2, 2024 · 1 comment
Assignees
Labels
[Status] Triaged Issue has been triaged [Type] Bug

Comments

@jonathanbossenger
Copy link

This is currently happening on Learn.WordPress.org:

Steps to Reproduce

  1. Create a course with two or three lessons.
  2. Create a quiz in the last lesson.
  3. Publish the lessons and the course.
  4. Browse the list of Lessons in the WP admin dashboard.
  5. Select the lesson which contains the quiz, and click Duplicate
  6. Translate the lesson and quiz content
  7. Publish the new lesson
  8. Browse to the original course and view the lesson with the quiz
  9. The translated quiz content is displayed

What I Expected

I expect to see the original quiz, not the translated one

What Happened Instead

The translated quiz "overrides" the original quiz

PHP / WordPress / Sensei LMS version

  • WordPress 6.7-alpha-58963
  • Sensei LMS Version 4.24.3
@donnapep donnapep self-assigned this Sep 10, 2024
@donnapep donnapep added this to the 4.24.4 milestone Oct 23, 2024
@donnapep donnapep added [Status] Triaged Issue has been triaged and removed [Status] Needs Triage Issue needs to be triaged labels Oct 23, 2024
@donnapep
Copy link
Collaborator

@jonathanbossenger I looked into this one and this behavior appears to be by design. When a lesson is duplicated, the questions in the quiz are not duplicated, but rather they are shared. This means that any changes you make to the question in one lesson affects all other lessons that use that question. This behavior makes it easier for people to reuse questions across many lessons, which is a fairly common practice in Sensei.

As it sounds like you do not want to utilize shared questions, I think you may need to remove the questions from the duplicated lesson and add new ones.

@donnapep donnapep added [Status] Needs Author Reply Requires response from the author and removed [Status] Triaged Issue has been triaged labels Oct 28, 2024
@donnapep donnapep added [Status] Triaged Issue has been triaged and removed [Status] Needs Author Reply Requires response from the author labels Oct 28, 2024
@donnapep donnapep removed this from the 4.24.4 milestone Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Triaged Issue has been triaged [Type] Bug
Projects
None yet
Development

No branches or pull requests

2 participants