From 8acb45f6874ca150889002031e58f83722af0763 Mon Sep 17 00:00:00 2001 From: Awais Jibran Date: Fri, 16 Apr 2021 11:04:28 +0500 Subject: [PATCH] Fix index bug in the email (#27353) * Fix indexing bug in the email. --- cms/templates/emails/user_task_complete_email.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/templates/emails/user_task_complete_email.txt b/cms/templates/emails/user_task_complete_email.txt index 474fd27f28..20039b5056 100644 --- a/cms/templates/emails/user_task_complete_email.txt +++ b/cms/templates/emails/user_task_complete_email.txt @@ -17,16 +17,16 @@ ${_("Your {task_name} task has completed with the status '{task_status}'. Sign i ${_("Here are some validations we found with your course content.")} % if errors: -${_("Errors: ")} ${len(errors)} +${_("Errors: ")} (${len(errors)}) % for index, error in enumerate(errors, start=1): ${index}. ${error} % endfor % endif % if warnings: -${_("Warnings: ")} ${len(warnings)} -% for warning in enumerate(warnings, start=1): +${_("Warnings: ")} (${len(warnings)}) +% for index, warning in enumerate(warnings, start=1): ${index}. ${warning} % endfor -%endif +% endif % endif