summaryrefslogtreecommitdiffstats
path: root/frontends/php/acknow.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-06 09:13:51 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-06 09:13:51 +0000
commit8465ff8a0e531247f41f4d3c7b3b1cbe03643974 (patch)
tree11a89a3bea5b2720cd839a7a2455d4d47caf9815 /frontends/php/acknow.php
parent37085eb0c73b06780c4f3a34f82693d04a1c2596 (diff)
downloadzabbix-8465ff8a0e531247f41f4d3c7b3b1cbe03643974.tar.gz
zabbix-8465ff8a0e531247f41f4d3c7b3b1cbe03643974.tar.xz
zabbix-8465ff8a0e531247f41f4d3c7b3b1cbe03643974.zip
- [DEV-137] fixes to GUI (Artem) big thanks to Palmertree
git-svn-id: svn://svn.zabbix.com/trunk@5677 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/acknow.php')
-rw-r--r--frontends/php/acknow.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/frontends/php/acknow.php b/frontends/php/acknow.php
index 8d30007e..eb80f51f 100644
--- a/frontends/php/acknow.php
+++ b/frontends/php/acknow.php
@@ -120,12 +120,24 @@ include_once "include/page_header.php";
' ['.($bulk)?(' BULK ACKNOWLEDGE '):(expand_trigger_description_by_data($db_data)).']'.
' ['.$_REQUEST['message'].']');
}
-
- Redirect('tr_status.php?hostid='.get_profile('web.tr_status.hostid',0));
+
+ $last_page=get_last_history_page();
+
+ if(!$last_page){
+ $last_page['url']='tr_status.php?hostid='.get_profile('web.tr_status.hostid',0);
+ }
+
+ Redirect($last_page['url']);
exit;
}
else if(isset($_REQUEST['cancel'])){
- Redirect('tr_status.php?hostid='.get_profile('web.tr_status.hostid',0));
+ $last_page=get_last_history_page();
+
+ if(!$last_page){
+ $last_page['url']='tr_status.php?hostid='.get_profile('web.tr_status.hostid',0);
+ }
+
+ Redirect($last_page['url']);
exit;
}
?>