From c1ea8ba0b034783a873fe8cb5ca3d1638fc5c8b0 Mon Sep 17 00:00:00 2001 From: liangguifeng <1476982312@qq.com> Date: Wed, 11 Nov 2020 16:02:06 +0800 Subject: [PATCH] =?UTF-8?q?js=20syntax=20error=EF=BC=8Cdefault=20value=20n?= =?UTF-8?q?ot=20define?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Form/Field/CanCascadeFields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/Field/CanCascadeFields.php b/src/Form/Field/CanCascadeFields.php index 0ac62b2beb..17125d147a 100644 --- a/src/Form/Field/CanCascadeFields.php +++ b/src/Form/Field/CanCascadeFields.php @@ -204,7 +204,7 @@ protected function addCascadeScript() var cascade_groups = {$cascadeGroups}; cascade_groups.forEach(function (event) { - var default_value = {$this->getDefault()} + ''; + var default_value = '{$this->getDefault()}' + ''; var class_name = event.class; if(default_value == event.value) { $('.'+class_name+'').removeClass('hide');