From 78d746b2814e50ed767aa2c72b9335cc184627c2 Mon Sep 17 00:00:00 2001 From: TheWitness Date: Mon, 23 Dec 2024 20:28:05 -0500 Subject: [PATCH] QA: Keep the row values 'Default' when they are default * Also clearing up a warning. --- lib/html_filter.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/html_filter.php b/lib/html_filter.php index e6779ec88b..b79257c4d8 100644 --- a/lib/html_filter.php +++ b/lib/html_filter.php @@ -459,6 +459,7 @@ private function create_filter() { if (!isset($field_array['value']) && $field_array['method'] != 'validate' && $field_array['method'] != 'submit' && + $field_array['method'] != 'content' && $field_array['method'] != 'button' && $field_array['method'] != 'timespan') { cacti_log("WARNING: The Filter Class value field $field_name is missing"); @@ -931,10 +932,6 @@ private function sanitize_filter_variables() { set_request_var('page', 1); } - if (!isset_request_var('rows')) { - set_request_var('rows', read_config_option('num_rows_table')); - } - if (isset($this->filter_array['sort'])) { $filters['sort_column']['filter'] = FILTER_CALLBACK; $filters['sort_column']['options'] = array('options' => 'sanitize_search_string');