From 6bdafd9e301c73e98d638be3880ce07007e2dc59 Mon Sep 17 00:00:00 2001 From: ryuring Date: Sun, 16 Apr 2023 14:20:56 +0900 Subject: [PATCH] =?UTF-8?q?TODO=E6=95=B4=E7=90=86=E3=80=81=E4=B8=8D?= =?UTF-8?q?=E8=A6=81=E3=81=AA=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/baser-core/src/Model/Table/ContentFoldersTable.php | 3 +-- plugins/baser-core/src/Model/Table/ContentsTable.php | 3 +-- plugins/bc-custom-content/src/Model/Table/CustomLinksTable.php | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/baser-core/src/Model/Table/ContentFoldersTable.php b/plugins/baser-core/src/Model/Table/ContentFoldersTable.php index 233050892a..490efb130a 100644 --- a/plugins/baser-core/src/Model/Table/ContentFoldersTable.php +++ b/plugins/baser-core/src/Model/Table/ContentFoldersTable.php @@ -87,7 +87,7 @@ public function validationDefault(Validator $validator): Validator * @param EventInterface $event * @param EntityInterface $entity * @param ArrayObject $options - * @return bool + * @return void * @checked * @noTodo * @unitTest @@ -99,7 +99,6 @@ public function beforeSave(EventInterface $event, EntityInterface $entity, Array $this->isMovableTemplate = false; $this->setBeforeRecord($entity->id); } - return parent::beforeSave($event, $entity, $options); } /** diff --git a/plugins/baser-core/src/Model/Table/ContentsTable.php b/plugins/baser-core/src/Model/Table/ContentsTable.php index 42272b3044..e54ba472d4 100644 --- a/plugins/baser-core/src/Model/Table/ContentsTable.php +++ b/plugins/baser-core/src/Model/Table/ContentsTable.php @@ -433,7 +433,7 @@ public function getUniqueName($name, $parentId, $contentId = null) * @param EventInterface $event * @param EntityInterface $entity * @param ArrayObject $options - * @return bool + * @return void * @checked * @noTodo * @unitTest @@ -446,7 +446,6 @@ public function beforeSave(EventInterface $event, EntityInterface $entity, Array if (!empty($entity->name)) { $entity->name = $this->urlEncode(mb_substr(rawurldecode($entity->name), 0, 230, 'UTF-8')); } - return parent::beforeSave($event, $entity, $options); } /** diff --git a/plugins/bc-custom-content/src/Model/Table/CustomLinksTable.php b/plugins/bc-custom-content/src/Model/Table/CustomLinksTable.php index edc6cc9e33..554b34d928 100644 --- a/plugins/bc-custom-content/src/Model/Table/CustomLinksTable.php +++ b/plugins/bc-custom-content/src/Model/Table/CustomLinksTable.php @@ -128,7 +128,6 @@ public function setTreeScope(int $tableId): void */ public function beforeSave(EventInterface $event, EntityInterface $entity, ArrayObject $options) { - parent::beforeSave($event, $entity, $options); if ($entity->isNew()) { $entity->name = $this->getUniqueName($entity->name, $entity->custom_table_id); }