Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check if salutation already exists in email body #13196

Merged
merged 2 commits into from May 28, 2021

Conversation

prssanna
Copy link
Contributor

Prevents salutation from being rendered multiple times.

@stale
Copy link

stale bot commented May 18, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label May 18, 2021
@stale stale bot closed this May 21, 2021
@stale stale bot removed the inactive label May 28, 2021
@surajshetty3416 surajshetty3416 merged commit 47579c5 into frappe:version-12-hotfix May 28, 2021
@surajshetty3416
Copy link
Member

@Mergifyio backport version-13-hotfix develop

@mergify
Copy link
Contributor

mergify bot commented May 28, 2021

Command backport version-13-hotfix develop: success

Backports have been created

mergify bot added a commit that referenced this pull request May 28, 2021
mergify bot added a commit that referenced this pull request May 28, 2021
const SALUTATION_END_COMMENT = "<!-- salutation-ends -->";
if (this.real_name && !message.includes(SALUTATION_END_COMMENT)) {
this.message = `
<p>${__('Dear')} ${this.real_name},</p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing! By the way, __('Dear') is impossible to translate correctly without knowing how it is used here. __('Dear {},', [this.real_name], 'Salutation in Email') would be a bit easier.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed with #13503

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants