Skip to content

Commit a5b2b5b

Browse files
authored
fix #701, fix #703 (#705)
* fix #701, fix #703 * update
1 parent 91fafe7 commit a5b2b5b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* issue#678: Unable to remove suspended notifications one by one
99
* issue#679: The PHP Mailer does not allow for the to and bcc addresses to be the same
1010
* issue#700: PHP8.x issue - addition a non-numeric value
11+
* issue#701: Site filter on notification list doesn't work
12+
* issue#703: Fix sorting column links
1113
* feature#677: Allow the Administrator to create a default Single Email Notification Subject
1214
* feature#696: Extend email replacement (location, site, ...) for subject and email body
1315

notify_lists.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,9 +1147,9 @@ function clearFilter() {
11471147
if (get_request_var('site_id') == '-1') {
11481148
/* Show all items */
11491149
} elseif (get_request_var('site_id') == '0') {
1150-
$sql_where .= ($sql_where == '' ? '' : ' AND ') . ' h.site_id = 0';
1150+
$sql_where .= ($sql_where == '' ? 'WHERE' : ' AND ') . ' h.site_id = 0';
11511151
} elseif (!isempty_request_var('site_id')) {
1152-
$sql_where .= ($sql_where == '' ? '' : ' AND ') . ' h.site_id = ?';
1152+
$sql_where .= ($sql_where == '' ? 'WHERE' : ' AND ') . ' h.site_id = ?';
11531153
$sql_params[] = get_request_var('site_id');
11541154
}
11551155

@@ -1253,7 +1253,7 @@ function clearFilter() {
12531253
)
12541254
);
12551255

1256-
html_header_sort_checkbox($display_text, get_request_var('sort_column'), get_request_var('sort_direction'), false);
1256+
html_header_sort_checkbox($display_text, get_request_var('sort_column'), get_request_var('sort_direction'), false, 'notify_lists.php?action=edit&id=' . get_filter_request_var('id'));
12571257

12581258
if (cacti_sizeof($hosts)) {
12591259
foreach ($hosts as $host) {

0 commit comments

Comments
 (0)