diff --git a/modules/stic_Custom_Views/processor/LogicHooksCode.php b/modules/stic_Custom_Views/processor/LogicHooksCode.php index cc90d00eaa5..37f40a22200 100644 --- a/modules/stic_Custom_Views/processor/LogicHooksCode.php +++ b/modules/stic_Custom_Views/processor/LogicHooksCode.php @@ -155,6 +155,9 @@ public function after_ui_frame($event, $arguments) foreach ($conditionBeanArray as $conditionBean) { $value_typeArray = explode("|", $conditionBean->value_type); $value_type = $value_typeArray[0]; + if ($value_type != "enum" && $value_type != "multienum" && $value_type != "dynamicenum") { + $value_typeArray[1] = ""; + } $value_list = $value_typeArray[1]; $condition_type = $conditionBean->condition_type; if($condition_type=="value") { diff --git a/modules/stic_Custom_Views/processor/js/sticCV_Record_Field_Content.js b/modules/stic_Custom_Views/processor/js/sticCV_Record_Field_Content.js index 2313275c6ae..a0cfadfd7b2 100644 --- a/modules/stic_Custom_Views/processor/js/sticCV_Record_Field_Content.js +++ b/modules/stic_Custom_Views/processor/js/sticCV_Record_Field_Content.js @@ -301,9 +301,13 @@ var sticCV_Record_Field_Content = class sticCV_Record_Field_Content extends stic conditionValue = conditionValue.replaceAll("^", "").split(",").sort().join(","); } } - if(this.type == "date") { + if (this.type == "date") { conditionValue = conditionValue.split(" ")[0]; } + if (this.type == "int" || this.type == "decimal" || this.type == "double") { + conditionValue = parseFloat(conditionValue); + currentValue = parseFloat(currentValue); + } if (!this._isMultienumCancelledInline()) { conditionValue = sticCVUtils.normalizeToCompare(conditionValue); }