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

【フォーム】ファイルのアップロードに失敗する #2936

Closed
seto1 opened this issue Dec 12, 2023 · 2 comments
Closed

【フォーム】ファイルのアップロードに失敗する #2936

seto1 opened this issue Dec 12, 2023 · 2 comments

Comments

@seto1
Copy link
Collaborator

seto1 commented Dec 12, 2023

baserCMS version : 5.0.8-dev

メール自体は送信されるものの受信メール一覧に添付したファイルが表示されない

以下のコミット後に失敗している
#2495

@seto1
Copy link
Collaborator Author

seto1 commented Dec 12, 2023

MailMessagesService->createの

if (!$postData instanceof EntityInterface) {
    // newEntity() だと配列が消えてしまうため、エンティティクラスで直接変換
    $entity = new MailMessage($postData, ['source' => 'BcMail.MailMessages']);
} else {
    $entity = $postData;
}

https://github.com/baserproject/basercms/blob/dev-5/plugins/bc-mail/src/Service/MailMessagesService.php#L121

を以下に変更するとアップロードできるようになるが、コメントに記載の通り問題ありそう

$entity = $this->MailMessages->newEntity($postData);

@seto1
Copy link
Collaborator Author

seto1 commented Dec 12, 2023

重複: #2816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant