From e23145a7c4a3fe9fa5bf755b26691beeeea74b91 Mon Sep 17 00:00:00 2001 From: ryuring Date: Sat, 20 Apr 2024 20:02:56 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=A0=E3=83=95?= =?UTF-8?q?=E3=82=A3=E3=83=BC=E3=83=AB=E3=83=89=E3=81=AE=E3=82=BF=E3=82=A4?= =?UTF-8?q?=E3=83=97=E3=80=8C=E9=96=A2=E9=80=A3=E3=83=87=E3=83=BC=E3=82=BF?= =?UTF-8?q?=E3=80=8D=E3=82=92=E5=88=A9=E7=94=A8=E3=81=99=E3=82=8B=E5=A0=B4?= =?UTF-8?q?=E5=90=88=E3=80=81=E5=88=9D=E6=9C=9F=E5=80=A4=E3=81=A8=E3=83=95?= =?UTF-8?q?=E3=82=A3=E3=83=AB=E3=82=BF=E3=83=BC=E3=81=8C=E5=8F=8D=E6=98=A0?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=20fix=20#3175?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BcCustomContent/Admin/element/CustomFields/form.php | 5 ++++- .../bc-custom-content/src/Service/CustomEntriesService.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/bc-admin-third/templates/plugin/BcCustomContent/Admin/element/CustomFields/form.php b/plugins/bc-admin-third/templates/plugin/BcCustomContent/Admin/element/CustomFields/form.php index d1c7e6d32c..bde5082864 100644 --- a/plugins/bc-admin-third/templates/plugin/BcCustomContent/Admin/element/CustomFields/form.php +++ b/plugins/bc-admin-third/templates/plugin/BcCustomContent/Admin/element/CustomFields/form.php @@ -298,7 +298,10 @@ ]) ?>
- +
BcAdminForm->error('default_value') ?> diff --git a/plugins/bc-custom-content/src/Service/CustomEntriesService.php b/plugins/bc-custom-content/src/Service/CustomEntriesService.php index b180a9be57..7f277c13c1 100644 --- a/plugins/bc-custom-content/src/Service/CustomEntriesService.php +++ b/plugins/bc-custom-content/src/Service/CustomEntriesService.php @@ -339,7 +339,7 @@ public function getList(array $options = []) $table = $this->CustomEntries->CustomTables->get($this->CustomEntries->tableId); $this->CustomEntries->setDisplayField($table->display_field); if ($table->has_child) { - return $this->getParentTargetList(null, $options['conditions']); + return $this->getParentTargetList(null, $options); } else { return $this->CustomEntries->find('list')->where($options['conditions'])->toArray(); }