From b9413e70f02cb25235de70360f8d98af25d4ab1c Mon Sep 17 00:00:00 2001 From: ryuring Date: Sun, 3 Mar 2024 14:48:36 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=96=E3=83=AD=E3=82=B0=E3=83=BB=E3=83=A1?= =?UTF-8?q?=E3=83=BC=E3=83=AB=E3=83=95=E3=82=A9=E3=83=BC=E3=83=A0=E3=81=8C?= =?UTF-8?q?=E3=82=B3=E3=83=94=E3=83=BC=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E6=94=B9=E5=96=84=20fix=20#3058?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/bc-blog/src/Model/Table/BlogContentsTable.php | 1 + plugins/bc-mail/src/Model/Table/MailContentsTable.php | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/bc-blog/src/Model/Table/BlogContentsTable.php b/plugins/bc-blog/src/Model/Table/BlogContentsTable.php index 5689b043bf..9a3c64bf5d 100755 --- a/plugins/bc-blog/src/Model/Table/BlogContentsTable.php +++ b/plugins/bc-blog/src/Model/Table/BlogContentsTable.php @@ -51,6 +51,7 @@ public function validationDefault(Validator $validator): Validator $validator ->scalar('description') + ->allowEmptyString('description') ->add('description', [ 'containsScript' => [ 'rule' => ['containsScript'], diff --git a/plugins/bc-mail/src/Model/Table/MailContentsTable.php b/plugins/bc-mail/src/Model/Table/MailContentsTable.php index a8a7a7f7d0..27e4aa6b1d 100755 --- a/plugins/bc-mail/src/Model/Table/MailContentsTable.php +++ b/plugins/bc-mail/src/Model/Table/MailContentsTable.php @@ -143,6 +143,7 @@ public function validationDefault(Validator $validator): Validator // description $validator ->scalar('description') + ->allowEmptyString('description') ->add('description', [ 'containsScript' => [ 'rule' => ['containsScript'],