From 67c58645f5492c26ae51e3d9282e1828127a2ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=86=D0=B2=D0=B0=D0=BD=20=D0=9D=D1=94=D0=B4=D1=94=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=96=D1=86=D0=B5=D0=B2?= Date: Tue, 14 May 2024 12:47:14 +0300 Subject: [PATCH] fix: [AXM-373] fix after demo --- lms/djangoapps/instructor/enrollment.py | 1 + lms/templates/instructor/edx_ace/addbetatester/push/body.txt | 2 +- lms/templates/instructor/edx_ace/addbetatester/push/subject.txt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/instructor/enrollment.py b/lms/djangoapps/instructor/enrollment.py index c0494980ec28..4643cc307ad9 100644 --- a/lms/djangoapps/instructor/enrollment.py +++ b/lms/djangoapps/instructor/enrollment.py @@ -250,6 +250,7 @@ def send_beta_role_email(action, user, email_params): email_params['app_label'] = 'instructor' email_params['push_notification_extra_context'] = { 'notification_type': email_params['message_type'], + 'course_id': str(getattr(email_params.get('course'), 'id', '')), } else: raise ValueError(f"Unexpected action received '{action}' - expected 'add' or 'remove'") diff --git a/lms/templates/instructor/edx_ace/addbetatester/push/body.txt b/lms/templates/instructor/edx_ace/addbetatester/push/body.txt index 586a9385f988..9070f05db483 100644 --- a/lms/templates/instructor/edx_ace/addbetatester/push/body.txt +++ b/lms/templates/instructor/edx_ace/addbetatester/push/body.txt @@ -1,5 +1,5 @@ {% load i18n %} {% autoescape off %} {% blocktrans %}Dear {{ full_name }}{% endblocktrans %} -{% blocktrans %}You have been removed as a beta tester for {{ course_name }} at {{ site_name }} by a member of the course staff. This course will remain on your dashboard, but you will no longer be part of the beta testing group.{% endblocktrans %} +{% blocktrans %}You have been invited to be a beta tester for {{ course_name }} at {{ site_name }} by a member of the course staff.{% endblocktrans %} {% endautoescape %} diff --git a/lms/templates/instructor/edx_ace/addbetatester/push/subject.txt b/lms/templates/instructor/edx_ace/addbetatester/push/subject.txt index 33dee3487f96..ca1838195f55 100644 --- a/lms/templates/instructor/edx_ace/addbetatester/push/subject.txt +++ b/lms/templates/instructor/edx_ace/addbetatester/push/subject.txt @@ -1,4 +1,4 @@ {% load i18n %} {% autoescape off %} -{% blocktrans %}You have been removed from a beta test for {{ course_name }}{% endblocktrans %} +{% blocktrans %}You have been invited to a betca test for {{ course_name }}{% endblocktrans %} {% endautoescape %}