2015-02-18 06:45:05
Is this a bug
Hi Greg
I think I have found a bug in ATutor with regard to prerequisites and lesson order. I am not sure so I thought I would ask you.
First, I discovered that you don't need to create folders for prerequisites to work. Simply attaching a test to a piece of content and setting the prerequisites will do it.
Anyway I have tests 1 2 3 4 5 etc numbered in the order they are entered each test or attached content, has all the preceding tests set as prerequisites.
so
1 has none
2 has 1
3 has 1 and 2
4 has 123
5 has 1234
The prerequisites work well until you delete and recreate the test.
if for instance you delete test 1 and recreate it and reattach its questions
it then has a test id of 6 even if it is the first test set by the priorities of the prerequisites. So the test order becomes
6 2 3 4 5 and the prerequisite looks like this
6
2 has 6
3 has 2 and 6
4 has 236
5 has 2346
The problem comes when you then try to enforce a new user to follow the prerequisite.
So for someone who has not started the course the following happens.
Whether the tests are in folders with prerequisites or just attached to content with prerequisites, if you click on item 2 it will tell you to complete item 1 and show you the appropriate content for test 1.
This is because item 2 only has one prerequisite which is test 1 with an id of 6.
But if you select item 3 or greater it will tell you you have to do the prerequisite of 2 and show you the corresponding test start with the begin button. And a user can press it and attempt the questions, but upon submission get an error saying there is no such item.
What I believe is happening is that the prerequisite function is looking at the test id in the database but assuming that the lowest test id is the prerequisite rather than an actual prerequisite order.
I hope this is clear
The answer of course is to delete all the tests and recreate them in order and reattach questions then reattach them to their content.
So is there a way to set prerequisite order other than just saying which tests have to be done before a piece of content is available?
Thanks
Jim Barnes