Open gabriosecco opened 5 years ago
Hi, what happened with this issue? Is there any solution for downloading essay attachments with random pick from questions bank?
I fixed the code myself, but I was hoping for an official version. anyway you just need something like this if ($question->qtype == 'essay' || $question->qtype == 'random') {
Gabrio, thanks for reply. I assume that this goes in line 56 of report.php
$hasessayquestions = false; if ($questions) { foreach ($questions as $question) { if ($question->qtype == 'essay') { $hasessayquestions = true; break; } } }
I will try and inform.
yes, exactly
Everything working perfect. Thanks Gabrio again.
This (and the fact that currently there is no version for Moodle 3.8) blocks adoption at our university.
Hello all, @gabriosecco thanks for working out the solution for qtype 'random'. Will test and incorporate it in the plugin and release plugin version for newer versions of Moodle soon. Thanks.
Will test and incorporate it in the plugin
Hello @Kashmira9890 , could you please do this now?
Note that @lucaboesch has got this (and some other) fix in his fork.
if the question of type "essay" is random on the quiz its qtype is "random" but the plugin only check for "essay" qtype. I mean, if I have a quiz and I have just a random question, even if it is from a pool of "essay" questions, the plugin will say there is no question available, so that check would have to consider random qtype too