Merge pull request #1404 from albertgasset/MOBILE-2468

MOBILE-2468 lesson: Fix error when submitting essay questions
main
Juan Leyva 2018-07-06 17:13:23 +02:00 committed by GitHub
commit bc64393e00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ export class AddonModLessonHelperProvider {
prepareQuestionData(question: any, data: any): any {
if (question.template == 'essay' && question.textarea) {
// Add some HTML to the answer if needed.
data[question.textarea.property] = this.textUtils.formatHtmlLines(data[question.textarea.property]);
data[question.textarea.name] = this.textUtils.formatHtmlLines(data[question.textarea.name]);
} else if (question.template == 'multichoice' && question.multi) {
// Only send the options with value set to true.
for (const name in data) {