Skip to content

Commit

Permalink
QA: Keep the row values 'Default' when they are default
Browse files Browse the repository at this point in the history
* Also clearing up a warning.
  • Loading branch information
TheWitness committed Dec 24, 2024
1 parent ef19e69 commit 78d746b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/html_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 78d746b

Please sign in to comment.