Skip to content

Commit e92b431

Browse files
committed
streamgraph bugfix
1 parent b0f84c0 commit e92b431

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

server/services/searchBASE.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ function filterEmptyString($value)
3737
$post_params["lang_id"] = ["all-lang"];
3838
}
3939
}
40-
40+
// ignore date filters if vis_type is set to timeline
41+
if (isset($post_params["vis_type"]) && $post_params["vis_type"] == "timeline") {
42+
unset($params_array[array_search("exclude_date_filters", $params_array)]);
43+
unset($post_params["exclude_date_filters"]);
44+
}
4145
// check if exclude_date_filters is set and true
4246
if (isset($post_params["exclude_date_filters"]) && $post_params["exclude_date_filters"] === true) {
4347
// Add "today" and exclude "from" and "to" from the $params_array

0 commit comments

Comments
 (0)