Skip to content

Commit

Permalink
QA: group_source issues when switching templates
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Dec 27, 2024
1 parent 3f99180 commit e97c12b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2445,7 +2445,9 @@ function html_graph_order_filter_array() {
'graph_source', 'graph_source'
);

if (get_nfilter_request_var('graph_source') == '' || get_nfilter_request_var('graph_source') == '-1') {
if (get_nfilter_request_var('graph_source') == '' ||
get_nfilter_request_var('graph_source') == '-1' ||
!in_array(get_nfilter_request_var('graph_source'), $data_sources)) {
if (cacti_sizeof($data_sources)) {
set_request_var('graph_source', array_keys($data_sources)[0]);
set_request_var('graph_order', 'desc');
Expand Down

0 comments on commit e97c12b

Please sign in to comment.