FIX: Count resulting bulk invites correctly (#18461)

Skipped invites were not counted at all and some invites could generate
more than one error and resulted in a grand total that was not equal to
the count of bulk invites.
This commit is contained in:
Bianca Nenciu
2022-10-04 18:41:06 +03:00
committed by GitHub
parent 585c584fdb
commit cf646b2061
3 changed files with 47 additions and 14 deletions

View File

@@ -3091,13 +3091,18 @@ en:
bulk_invite_succeeded:
title: "Bulk Invite Succeeded"
subject_template: "Bulk user invite processed successfully"
text_body_template: "Your bulk user invite file was processed, %{sent} invites mailed."
text_body_template: |
Your bulk user invite file was processed, %{sent} invites mailed, %{skipped} skipped and %{warnings} warning(s).
``` text
%{logs}
```
bulk_invite_failed:
title: "Bulk Invite Failed"
subject_template: "Bulk user invite processed with errors"
text_body_template: |
Your bulk user invite file was processed, %{sent} invites mailed with %{failed} error(s).
Your bulk user invite file was processed, %{sent} invites mailed, %{skipped} skipped, %{warnings} warning(s) and %{failed} error(s).
Here's the log: