]> git.pld-linux.org Git - packages/cacti.git/blame - fix_search_session_clear_issue.patch
- do not reset config, inherit
[packages/cacti.git] / fix_search_session_clear_issue.patch
CommitLineData
fdcfda25
AM
1--- cacti-0.8.6h/host.php 2006-01-03 21:08:30.000000000 -0600
2+++ cacti-fixed/host.php 2006-01-06 22:45:51.630701318 -0600
3@@ -726,18 +726,18 @@
4 unset($_REQUEST["host_status"]);
5 }
6
7- if (!empty($_SESSION["sess_host_status"])) {
8- if ($_SESSION["sess_host_status"] != $_REQUEST["host_status"]) {
9- $_REQUEST["page"] = 1;
10- }
11- }
12-
13 /* remember these search fields in session vars so we don't have to keep passing them around */
14 load_current_session_value("page", "sess_device_current_page", "1");
15 load_current_session_value("filter", "sess_device_filter", "");
16 load_current_session_value("host_template_id", "sess_device_host_template_id", "-1");
17 load_current_session_value("host_status", "sess_host_status", "-1");
18
19+ if (!empty($_SESSION["sess_host_status"])) {
20+ if ($_SESSION["sess_host_status"] != $_REQUEST["host_status"]) {
21+ $_REQUEST["page"] = 1;
22+ }
23+ }
24+
25 html_start_box("<strong>Devices</strong>", "98%", $colors["header"], "3", "center", "host.php?action=edit&host_template_id=" . $_REQUEST["host_template_id"] . "&host_status=" . $_REQUEST["host_status"]);
26
27 include("./include/html/inc_device_filter_table.php");
This page took 0.072737 seconds and 4 git commands to generate.