- Issue created by @socketwench
When manually scoring a module, a failure is exposed that doesn't allow the Learning Path to complete:
https://www.drupal.org/project/opigno_module/issues/3522075 π ModuleResultForm doesn't complete LP if passed Active
As part of that fix, a fix is required in LpSteps::getCourseStep which loads the number of attempts a step may be performed by the student. This allows downstream modules to check for mandatory steps with outstanding attempts so as to mark the LP status.
Call LpSteps::getCourseStep(). The output should include the allowed attempts. If unlimited, it should be zero.
Add 'allowed attempts' to the array output.
Create patch.
None.
Steps recalled by this method now have the attempts allowed available to them.
None.
Active
3.2
Code