Hi everybody,i'm in trouble with survey activity: i defined that the certificate should be available only for users who did a survey activity, but either if user did it or not certificate seems to be not allowed.
i did some test and it seems to me that in certificate_activity_completed function, near line 1610 there could be an error:
[...] return (get_record('survey_answers', 'id', $cm->instance, 'userid', $userid) !== false);
always return false,
i suppose that this line should be changed like
return (get_record('survey_answers', 'survey', $cm->instance, 'userid', $userid) !== false);
am i wrong? did someone got the same problem?