Fix learning path teacher/student view. Issue #6604

https://support.chamilo.org/issues/6604