MOBILE-3068 course: Check action is avalaible before navigating

main
Pau Ferrer Ocaña 2019-08-26 11:46:20 +02:00
parent f3debfab1f
commit 330f1741f9
1 changed files with 1 additions and 1 deletions

View File

@ -1170,7 +1170,7 @@ export class CoreCourseHelperProvider {
module.handlerData = this.moduleDelegate.getModuleDataFor(module.modname, module, courseId, sectionId);
if (navCtrl) {
if (navCtrl && module.handlerData && module.handlerData.action) {
// If the link handler for this module passed through navCtrl, we can use the module's handler to navigate cleanly.
// Otherwise, we will redirect below.
modal.dismiss();