diff --git a/src/Form/Field/CanCascadeFields.php b/src/Form/Field/CanCascadeFields.php index b4d3deecbb..265024dc6a 100644 --- a/src/Form/Field/CanCascadeFields.php +++ b/src/Form/Field/CanCascadeFields.php @@ -214,7 +214,7 @@ protected function addCascadeScript() cascade_groups.forEach(function (event) { var default_value = '{$this->getValueByJs()}' + ''; var class_name = event.class; - if(default_value == event.value) { + if(operator_table[event.operator](default_value, event.value)) { $('.'+class_name+'').removeClass('hide'); } });