Affects Version/s: 2.4
Fix Version/s: 2.4.2
Pull from Repository:
Pull Master Branch:master_
Pull Master Diff URL:
- Delpoy attached pack
- Attempt the two question as student, donot click "finish".
- Click "exist activity" instead
- Go back and restart your attempt to see the error.
Copying my comment from the linked issue:-
- I dug a little deeper. The problem happens when you attempt the package, exit the activity after finishing both question but donot click "finish". And than restart the attempt.
- There is no error when you finish attempt in the middle of the pack and restart it later.
- The error is basically since $result->sco is returned as an array containing a sco object where as the code expects it do be the sco object itself.
- Dump of $result without error case:-
- Dump of $result during the error:-
- As pointed out earlier this doesnt seem to have to do anything with the issue in hand, this is a whole different context.