Problem/Motivation

When a module is part of a course, and is mandatory, opigno_learning_path_get_steps() looks for module attempts using the course ID, instead of the learning path ID, this can result in no attempts being found and the message 'A required step, %module_name should be done first' even if the user has already completed the module.

i.e. OpignoModule::getModuleAttempts() is called with the course ID. via LpSteps::getModuleSteps() with a long call chain back up to opigno_learning_path_get_course_step(). There's no way with the API to provide both the course and learning path IDs.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

catch created an issue.