sensei
sensei copied to clipboard
Quiz not available when adding the quiz block from the blocks inserter sidebar
trafficstars
Related to https://github.com/Automattic/sensei/issues/5351
This bug breaks the quiz-lesson relation and is most likely caused by a logic that triggers a second save in the editor once the lesson is published.
Notes
I've noticed that once the publish button is clicked, another save is triggered (can be seen in the video below). The bug happens only when that double save is not triggered.
Steps to Reproduce
- Go to the Add New Lesson screen.
- Open the blocks sidebar by pressing the + button located on the top left.
- Select the quiz block.
- Fill in a valid question.
- Save the lesson.
- View the lesson in the front end.
What I Expected
I expected to see the "View Quiz" button and be able to access the quiz.
What Happened Instead
There is no "View Quiz" button.
PHP / WordPress / Sensei LMS version
PHP: 7.2 WordPress: 6.0.1 Sensei: 4.6.0
Browser / OS version
Browser: Chrome OS: MacOS
Screenshot / Video
https://user-images.githubusercontent.com/1612178/182249133-d15a7fb4-73b2-45c3-8418-7b5a44e19dba.mp4
Another video could be found in 5372276-zen.