Blame fix_search_session_clear_issue.patch
|
|
97f04d3 |
--- cacti-0.8.6h/host.php 2006-01-03 21:08:30.000000000 -0600
|
|
|
97f04d3 |
+++ cacti-fixed/host.php 2006-01-06 22:45:51.630701318 -0600
|
|
|
97f04d3 |
@@ -726,18 +726,18 @@
|
|
|
97f04d3 |
unset($_REQUEST["host_status"]);
|
|
|
97f04d3 |
}
|
|
|
97f04d3 |
|
|
|
97f04d3 |
- if (!empty($_SESSION["sess_host_status"])) {
|
|
|
97f04d3 |
- if ($_SESSION["sess_host_status"] != $_REQUEST["host_status"]) {
|
|
|
97f04d3 |
- $_REQUEST["page"] = 1;
|
|
|
97f04d3 |
- }
|
|
|
97f04d3 |
- }
|
|
|
97f04d3 |
-
|
|
|
97f04d3 |
/* remember these search fields in session vars so we don't have to keep passing them around */
|
|
|
97f04d3 |
load_current_session_value("page", "sess_device_current_page", "1");
|
|
|
97f04d3 |
load_current_session_value("filter", "sess_device_filter", "");
|
|
|
97f04d3 |
load_current_session_value("host_template_id", "sess_device_host_template_id", "-1");
|
|
|
97f04d3 |
load_current_session_value("host_status", "sess_host_status", "-1");
|
|
|
97f04d3 |
|
|
|
97f04d3 |
+ if (!empty($_SESSION["sess_host_status"])) {
|
|
|
97f04d3 |
+ if ($_SESSION["sess_host_status"] != $_REQUEST["host_status"]) {
|
|
|
97f04d3 |
+ $_REQUEST["page"] = 1;
|
|
|
97f04d3 |
+ }
|
|
|
97f04d3 |
+ }
|
|
|
97f04d3 |
+
|
|
|
97f04d3 |
html_start_box("Devices", "98%", $colors["header"], "3", "center", "host.php?action=edit&host_template_id=" . $_REQUEST["host_template_id"] . "&host_status=" . $_REQUEST["host_status"]);
|
|
|
97f04d3 |
|
|
|
97f04d3 |
include("./include/html/inc_device_filter_table.php");
|