Skip to content

Commit

Permalink
fix #701, fix #703 (#705)
Browse files Browse the repository at this point in the history
* fix #701, fix #703

* update
  • Loading branch information
xmacan authored Oct 15, 2024
1 parent 91fafe7 commit a5b2b5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* issue#678: Unable to remove suspended notifications one by one
* issue#679: The PHP Mailer does not allow for the to and bcc addresses to be the same
* issue#700: PHP8.x issue - addition a non-numeric value
* issue#701: Site filter on notification list doesn't work
* issue#703: Fix sorting column links
* feature#677: Allow the Administrator to create a default Single Email Notification Subject
* feature#696: Extend email replacement (location, site, ...) for subject and email body

Expand Down
6 changes: 3 additions & 3 deletions notify_lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -1147,9 +1147,9 @@ function clearFilter() {
if (get_request_var('site_id') == '-1') {
/* Show all items */
} elseif (get_request_var('site_id') == '0') {
$sql_where .= ($sql_where == '' ? '' : ' AND ') . ' h.site_id = 0';
$sql_where .= ($sql_where == '' ? 'WHERE' : ' AND ') . ' h.site_id = 0';
} elseif (!isempty_request_var('site_id')) {
$sql_where .= ($sql_where == '' ? '' : ' AND ') . ' h.site_id = ?';
$sql_where .= ($sql_where == '' ? 'WHERE' : ' AND ') . ' h.site_id = ?';
$sql_params[] = get_request_var('site_id');
}

Expand Down Expand Up @@ -1253,7 +1253,7 @@ function clearFilter() {
)
);

html_header_sort_checkbox($display_text, get_request_var('sort_column'), get_request_var('sort_direction'), false);
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'));

if (cacti_sizeof($hosts)) {
foreach ($hosts as $host) {
Expand Down

0 comments on commit a5b2b5b

Please sign in to comment.