Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix - Vistas Personalizadas - Verificación correcta de condiciones numéricas #423

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/stic_Custom_Views/processor/LogicHooksCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Loading