moodle-mod_hvp icon indicating copy to clipboard operation
moodle-mod_hvp copied to clipboard

H5p activity completion notification email sending to one student

Open jasimp opened this issue 3 years ago • 2 comments

Hi there Can any one help me to sort out the below issue

The below h5p activity completion mail sending to one of the student automatically when ever a student complete an interactive video.

I traced out the below from language string by comparing the email body

No idea where this configured to remove the student name

mod_hvp emailnotifybody Hi {$a->username}, {$a->studentname} has completed '{$a->hvpname}' ({$a->hvpurl}) in course '{$a->coursename}'. You can review this attempt at {$a->hvpreporturl}.

Any help in this regard is highly appreciated

Thank you

jasimp avatar Sep 09 '21 04:09 jasimp

I'm not sure what your issue is. What is wrong or unexpected behavior ? This is the code that sends the message: https://github.com/h5p/moodle-mod_hvp/commit/fee78147dffddecd110d1202f0a6853374a0ab7f#diff-3494b45596f0f648d894a5f22070eaae01f3e0ea664be0430b8d23eb7d93e35aR609

thomasmars avatar Sep 09 '21 06:09 thomasmars

I'm not sure what your issue is. What is wrong or unexpected behavior ? This is the code that sends the message: fee7814#diff-3494b45596f0f648d894a5f22070eaae01f3e0ea664be0430b8d23eb7d93e35aR609

Thank you Thomas Mars for the prompt reply The issue is the mail going to an enrolled student that saying the system administrator completed the h5p activity which i (admin) was testing and only one student enrolled for testing purpose and this student receiving the admin completion!

image

I never set up to receive a completion notification to a student and dont know where this set up is Also there is no such completion email for other h5p activities

jasimp avatar Sep 09 '21 08:09 jasimp