Merge branch 'ent-11149-graficas-del-visor-de-logs-no-muestran-nunca-datos' into 'develop'

Ent 11149 graficas del visor de logs no muestran nunca datos

See merge request artica/pandorafms!5947
This commit is contained in:
Rafael Ameijeiras 2023-05-24 07:26:48 +00:00
commit a5b84756d3
1 changed files with 5 additions and 0 deletions

View File

@ -903,6 +903,11 @@ function html_print_select(
) {
// This fixes string ($value) to int ($selected) comparisons
$output .= ' selected="selected"';
} else if (is_numeric($value) && is_string($selected)) {
$str_value = strval($value);
if ($str_value === $selected) {
$output .= ' selected="selected"';
}
} else if ($value === $selected) {
// Needs type comparison otherwise if $selected = 0 and $value = "string" this would evaluate to true
$output .= ' selected="selected"';