Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Mailer] Fix rendered templates for notifications#48505

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@fabpot
Copy link
Member

QA
Branch?6.2
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#48472
LicenseMIT
Doc PRn/a

Alternative to#48481

evertharmeling and COil reacted with thumbs up emoji
Copy link
Contributor

@ThomasTrThomasTr left a comment

Choose a reason for hiding this comment

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

Works for me

@xabbuh
Copy link
Member

looks like we need to bump the minimum allowed version ofsymfony/mime in the Mailer component

@fabpotfabpotforce-pushed themailer-rendered-template-fix-62 branch from87276fb toba1bd59CompareDecember 6, 2022 12:49
@fabpotfabpotforce-pushed themailer-rendered-template-fix-62 branch 2 times, most recently from46d2f8a tobf9aea9CompareDecember 6, 2022 16:47
if (4 ===\count($data)) {
[$this->context,$this->theme,$this->rendered,$parentData] =$data;
}elseif (3 ===\count($data)) {
[$this->context,$this->theme,$parentData] =$data;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is worth adding a comment as done two lines below or should it be updated to cover this new case?


publicfunctionisRendered():bool
{
returnnull ===$this->htmlTemplate &&null ===$this->textTemplate;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not using a boolean property as done in the other class?
Setting those tonull in the next method could lead to inconsistency?

@fabpotfabpotforce-pushed themailer-rendered-template-fix-62 branch frombf9aea9 to677e188CompareDecember 6, 2022 16:51
@fabpotfabpotforce-pushed themailer-rendered-template-fix-62 branch from677e188 to085185dCompareDecember 6, 2022 16:54
$message =$event->getMessage();

if ($messageinstanceof TemplatedEmail &&($message->getTextTemplate() ||$message->getHtmlTemplate())) {
if ($messageinstanceof TemplatedEmail &&!$message->isRendered()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The behavior seems different here now, the error may be that the template has already been rendered.

@fabpotfabpot merged commit4cb2a86 intosymfony:6.2Dec 6, 2022
@fabpotfabpot deleted the mailer-rendered-template-fix-62 branchDecember 6, 2022 17:02
@fabpotfabpot mentioned this pull requestDec 6, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+2 more reviewers

@HeahDudeHeahDudeHeahDude left review comments

@ThomasTrThomasTrThomasTr approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.2

Development

Successfully merging this pull request may close these issues.

6 participants

@fabpot@xabbuh@nicolas-grekas@ThomasTr@HeahDude@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp