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');