From 2388b878dc16b296f99a8c02afe327917803668b Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 21 Nov 2023 13:35:47 +0530 Subject: [PATCH] fix: encode chapter during lesson creation --- lms/www/batch/edit.html | 2 +- lms/www/batch/edit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/www/batch/edit.html b/lms/www/batch/edit.html index 312e060f..b75ddbe1 100644 --- a/lms/www/batch/edit.html +++ b/lms/www/batch/edit.html @@ -70,7 +70,7 @@ {{ _("Title") }}
- +
diff --git a/lms/www/batch/edit.js b/lms/www/batch/edit.js index 13010356..d9e2d892 100644 --- a/lms/www/batch/edit.js +++ b/lms/www/batch/edit.js @@ -234,7 +234,7 @@ const save = () => { args: { title: $("#lesson-title").val(), body: this.lesson_content_data, - chapter: $("#lesson-title").data("chapter"), + chapter: decodeURIComponent($("#lesson-title").data("chapter")), preview: $("#preview").prop("checked") ? 1 : 0, idx: $("#lesson-title").data("index"), lesson: lesson ? lesson : "",