emails: Replace string_id from sponsorship request email context.

Use of `string_id` in the sponsorship request email content was
removed in commit d3834f8b9, but it is still used in the email
subject.

Updates the email subject to use the billing_entity_display_name,
which is still the Realm.string_id for Zulip Cloud organizations.

Sets this string as "billing_entity" in the context and subject
template.
This commit is contained in:
Lauryn Menard 2023-12-06 13:20:22 +01:00 committed by Tim Abbott
parent ea725aaaf3
commit 46dab1beb9
2 changed files with 2 additions and 3 deletions

View File

@ -2245,8 +2245,7 @@ class BillingSession(ABC):
context = { context = {
"requested_by": user_info["name"], "requested_by": user_info["name"],
"user_role": user_info["role"], "user_role": user_info["role"],
# TODO: realm_string_id needs to be replaced by something more generic. "billing_entity": self.billing_entity_display_name,
"string_id": request_context["realm_string_id"],
"support_url": support_url, "support_url": support_url,
"organization_type": org_type_display_name, "organization_type": org_type_display_name,
"website": sponsorship_request.org_website, "website": sponsorship_request.org_website,

View File

@ -1 +1 @@
Sponsorship request ({{ organization_type }}) for {{ string_id }} Sponsorship request ({{ organization_type }}) for {{ billing_entity }}