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

Unexpected behavior when copying the course outline from a course to another #7505

Open
renatho opened this issue Feb 23, 2024 · 0 comments
Open
Labels
[Pri] Normal Can wait for the next release [Status] Triaged Issue has been triaged [Type] Bug

Comments

@renatho
Copy link
Contributor

renatho commented Feb 23, 2024

Steps to Reproduce

  1. Create a new course.
  2. Add some lessons and save it.
  3. Create another course.
  4. Copy the content of the editor of the first course (including the course outline block) and paste into the editor of the second one.
  5. Publish it and refresh the editor.
  6. Open the course on the frontend.

What I Expected

Ideally (for discussion), I think it should duplicate the lessons for the other course. But I think a good and easier behavior would be to just create new lessons for the new course, since we're just copying the course outline.

I didn't dig into it technically, but I imagine a possible solution would be just to identify somehow that it was copied, and remove the lesson ID from the blocks.

What Happened Instead

The course outline block is pointing to the same lesson for both courses and it doesn't work currently because lessons are only tied to a single course.

Sensei LMS version

4.20.2

Browser / OS version

Chrome / OSX

Context / Source

Reported in p1708564920557689-slack-C07418EJ0

@renatho renatho added [Type] Bug [Pri] Normal Can wait for the next release [Status] Triaged Issue has been triaged labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Pri] Normal Can wait for the next release [Status] Triaged Issue has been triaged [Type] Bug
Projects
None yet
Development

No branches or pull requests

1 participant