Irrelevant questions and answers are getting after completed the module

I'm using Drupal 8 with Opigno 2 and the H5P integration module (opigno_h5p).

 

While attempting and completing H5P questions within a module, everything works fine during the attempt. However, on the result page, I'm seeing irrelevant questions and answers — content that belongs to other H5P activities or modules.

 

What I've already checked:

Verified the opigno_answer and field_xapidata tables in the database — the data stored there is correct and matches the H5P content ID (h5p-local-content-id).

 

Each H5P activity is correctly linked to the expected module (opigno_module_relationship).

 

The xAPI data stored in field_xapidata is clean and has the expected content ID and structure.

 

Problem:

On the result page (e.g., /module/[mid]/result/[result_id]), I'm expecting to see only the answers from the current activity (e.g., activity ID 3728), but instead I’m getting answers from other H5P activities as well (e.g., 3721, 3723, etc.).

 

It seems like the system is loading all answers linked to the user_module_status, without filtering by the specific H5P content.

 

What I'm looking for:

Is this a known issue with the H5P or Opigno H5P module?

 

Is there a recommended way to correctly filter answers by H5P content ID (h5p-local-content-id) for displaying results?

 

 

Any guidance on improving or overriding the result rendering to show only relevant data?

Content types: 
otacke's picture

Once an H5P content type has sent its xAPI statement, it is out of H5P's control. Further processing is done in the H5P integration only.

Even though that means that something is wrong in the H5P plugin, In your case, it sounds like it wa an Opigno specific issue, so you might want to reach out to them.