diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-06 09:13:51 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-06 09:13:51 +0000 |
| commit | 8465ff8a0e531247f41f4d3c7b3b1cbe03643974 (patch) | |
| tree | 11a89a3bea5b2720cd839a7a2455d4d47caf9815 /frontends/php/acknow.php | |
| parent | 37085eb0c73b06780c4f3a34f82693d04a1c2596 (diff) | |
| download | zabbix-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.php | 18 |
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; } ?> |
