From 5e61b17cf8bad73cdfc88accf7adb8afe5cc7df5 Mon Sep 17 00:00:00 2001 From: scmmishra Date: Thu, 28 Feb 2019 15:43:33 +0530 Subject: [PATCH] fix: Routing after finishing a course topic --- .../public/js/education/lms/components/ContentNavigation.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/education/lms/components/ContentNavigation.vue b/erpnext/public/js/education/lms/components/ContentNavigation.vue index 47bcf25eab..bca89162c1 100644 --- a/erpnext/public/js/education/lms/components/ContentNavigation.vue +++ b/erpnext/public/js/education/lms/components/ContentNavigation.vue @@ -16,7 +16,7 @@ export default { console.log("Adding Activity") lms.call("add_activity", { - course: this.$route.params.course, + course: this.$route.params.course_name, content_type: this.$route.params.type, content: this.$route.params.content } @@ -25,7 +25,7 @@ export default { }, goNext() { this.addActivity() - this.$router.push({ name: 'content', params: { course: this.$route.params.course, type:this.nextContentType, content:this.nextContent }}) + this.$router.push({ name: 'content', params: { course: this.$route.params.course_name, type:this.nextContentType, content:this.nextContent }}) }, finish() { this.addActivity()