sensei icon indicating copy to clipboard operation
sensei copied to clipboard

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

Open renatho opened this issue 1 year ago • 0 comments

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 avatar Feb 23 '24 14:02 renatho