New contrib: LTI Provider

Re: New contrib: LTI Provider - zero score not sent

by Sam Moulem -
Number of replies: 2

Hi,

That's a brilliant plugin and we are testing its features between two Moodle installations ( 2.8.5).

However it seems when candidates scores 0, getting all questions wrong, the grade/score is not sent back by the LTI provider.

It seems the pluging send only grades greater than zero

 in ltiprovider/lib.php (line 267 in our version):

if ($grade > 0 and $grade <= $grademax) {
                                $float_grade = $grade / $grademax;
                                $body = local_ltiprovider_create_service_body($user->sourceid, $float_grade);


We have candidates that get all questions wrong and therefore score zero; which is a valid grade.

Am I correct in my assumption?

Will it be addressed?

Thanks again,

Sam

In reply to Sam Moulem

Re: New contrib: LTI Provider - zero score not sent

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

yes, you are right. I fixed it so now zero grades are send back

Changes are in github, I will publish a new version of the LTI provider plugin soon

Regards

In reply to Juan Leyva

Re: New contrib: LTI Provider - zero score not sent

by Sam Moulem -

Thanks, that's fantastic!

I'll have a look smile.