possible bug on image juxtaposition in new moodle h5p

Hi,

we're using Moodle 3.9 at our university with the new H5P core activity and the questionbank (the "old plugin" mod_hvp is deactivated). We may have discovered a bug in the image juxtaposition content type on Moodle:

In the contentbank preview the heading is displayed above the images. In the embedded content (as label or as H5P activity) the title is displayed above the images (see image). This becomes a problem, if you want to embed the content without any heading.

Is this a H5P bug, which can be solved, or is it a Moodle bug?

THX for your help!!!

Attachments: 
Content types: 
otacke's picture

Hi abrandt!

Thanks for the report. I can reproduce the problem on moodle 3.9. Everything is fine when running the H5P plugin, but I I have the same odd behavior when using moodle's integration of H5P.

I cannot pin down the problem due to a lack of knowledge about moodle's implementation, but I am pretty confident that the problem is not in Image Juxtaposition.

I found two database entries for the content that I created (in table mdl_h5p, column jsoncontent and/or filtered) - one probably is for the original entry for the content bank and it contains the correct title attribute for the parameters, the other one probably is for the instance in the course. The database entry for the instance differs from the original one. Not only does the jsoncontent column only contain a subset of the original parameters, but the value for the title value has also been changed - and Image Juxtaposition simply displays what it is fed.

My observation leads me to believe that the function in moodle core that's creating the "copy" of the entry is responsible for the problem.

I'd suggest you raise a ticket on the moodle bug tracker and mention this post as a reference.

Best,
Oliver