From adda7e957ab6fe5b578b97591177a99ee62c88c0 Mon Sep 17 00:00:00 2001 From: ryuring Date: Tue, 27 Feb 2024 13:14:10 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=83=AB=E3=83=95=E3=82=A9?= =?UTF-8?q?=E3=83=BC=E3=83=A0=E3=81=AB=E3=81=A6=E3=80=81getMailFormGroupVa?= =?UTF-8?q?lidErrors=20=E3=82=92=E5=AE=9F=E8=A1=8C=E3=81=97=E3=81=9F?= =?UTF-8?q?=E7=9B=B4=E5=BE=8C=E3=81=AE=E3=83=95=E3=82=A3=E3=83=BC=E3=83=AB?= =?UTF-8?q?=E3=83=89=E3=81=8C=E5=8F=96=E5=BE=97=E3=81=A7=E3=81=8D=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E6=94=B9=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/bc-mail/src/View/Helper/MailformHelper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/bc-mail/src/View/Helper/MailformHelper.php b/plugins/bc-mail/src/View/Helper/MailformHelper.php index f74a941561..9226a6e04a 100755 --- a/plugins/bc-mail/src/View/Helper/MailformHelper.php +++ b/plugins/bc-mail/src/View/Helper/MailformHelper.php @@ -296,6 +296,8 @@ public function authCaptcha(string $fieldName, array $options = []) */ public function getGroupValidErrors(ResultSetInterface $mailFields, string $groupValid, array $options = [], bool $distinct = true) { + // 呼び出し元のイテレーションに影響が出ないようにクローンを作成 + $mailFields = clone $mailFields; $errors = []; foreach ($mailFields as $mailField) { if ($mailField->group_valid !== $groupValid) continue;