I have 25 lessons in a course and one of them keeps showing up twice in the course view. I checked and both links point to the same node ID so it is not a duplicated lesson. I have removed all old revisions from the lessons and the questions and it still shows up. However, now I get "No questions were found. Please assign questions before trying to take this Topic." whenever I [Take] the lesson. When I go into [Manage Questions] all my questions are there as they should be. I am at the point where I am going to delete the entire lesson and start again. 1) Why would this one question keep appearing twice in the view? 2) How can I fix the "no questions" error when I [Take] the lesson? Revisions are turning out to be the bane of my life, with me forever going in and deleting old versions to make the correct lessons and questions show for new users. 3) Is there a way to switch off revisions completely? Many thanks, Tim
Thank you for finding this bug.
What happens is that if a lesson has been part of serveral courses and has been sorted, the reference is kept in the weight sorting table and when doing the view query it shows up.
I have fixed this.
Look at the code change in the opigno_quiz_app.module that registers the context filter handler for the weight gid. Change this in your module and inside the view add the contextual filter "Opigno quiz app: The quiz group" : -> Provide default value : Content id from url
This has been pushed and will be fixed on next release
Let me know if it worked for you, Best regards
In reply to Hi Tim, by James Aparicio
Hi Tim, if you look at the
Hi Tim, if you look at the git commit link i wrote.
You have the files and changes there.
It is inside profiles/opigno_lms/modules/opigno/opigno_quiz_app/opigno_quiz_app.module. Code was changed inside the function
The other file changed, views_default you do not need to change, you can go to the view itself and add the context filter as i explained.
Sorry, forgot to add the
In reply to Sorry, forgot to add the by Tim Sparrow
Fixed the issue.