Skip to content

fix #4338 【メール】確認画面で送信時にバリデーションエラーが発生するとエラーになる件を修正#4391

Open
kaburk wants to merge 1 commit into
baserproject:5.2.xfrom
kaburk:5.2.x-#4338
Open

fix #4338 【メール】確認画面で送信時にバリデーションエラーが発生するとエラーになる件を修正#4391
kaburk wants to merge 1 commit into
baserproject:5.2.xfrom
kaburk:5.2.x-#4338

Conversation

@kaburk
Copy link
Copy Markdown
Collaborator

@kaburk kaburk commented May 22, 2026

よろしくお願いします。

Copilot AI review requested due to automatic review settings May 22, 2026 10:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

本PRは、メールフォームの確認画面から送信した際に、バリデーションエラー(PersistenceFailedException)が発生すると致命的エラーになる不具合(#4338)を修正するものです。例外捕捉時に誤った変数へアクセスしていた箇所を、例外から取得したエンティティに対する操作へ修正しています。

Changes:

  • PersistenceFailedException 発生時に未定義になり得る $mailMessage ではなく、例外エンティティ $entityauth_captcha をクリアするよう修正

Comment on lines 282 to 286
} catch (PersistenceFailedException $e) {
$entity = $e->getEntity();
$mailMessage->auth_captcha = '';
$entity->auth_captcha = '';
$this->BcMessage->setError(__d('baser_core', '入力内容を確認し、再度送信してください。'));
$this->set($service->getViewVarsForConfirm($mailContent, $entity));
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

Successfully merging this pull request may close these issues.

2 participants