chamilo-lms
chamilo-lms copied to clipboard
Wrong result function is_certificate_available()
Current behavior / Resultado actual / Résultat actuel
When you complete the learning path of a session course the function still returns false
meaning that the certificate is not available.

Expected behavior / Resultado esperado / Résultat attendu
When you complete the learning path of session course the function should returns true meaning that the certificate is available.
Steps to reproduce / Pasos para reproducir / Étapes pour reproduire
- Create a course with a scorm
- Create a session with the previous course created and import it with the gradebook
- Admin user - View page (Corporate report)
- Student user - View page (My courses)
Chamilo Version / Versión de Chamilo / Version de Chamilo
1.11.x
I have tested many cases and this issue only occurs with session courses which only has a scorm.
I know where the issue is but I wanted to share it anyway before I do any pull request.

Commit added. Closing.