summaryrefslogtreecommitdiffstats
path: root/frontends/php/actionconf.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-15 14:06:26 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-15 14:06:26 +0000
commitb6ecd0b1c0d40bca9a40ab08ddce2a2fa0aa80bf (patch)
tree38bb138746c59e28e6a21bea133ba900fbaeabf1 /frontends/php/actionconf.php
parentb3c8ef909f5494a311e39f89b16d81a4c559f280 (diff)
downloadzabbix-b6ecd0b1c0d40bca9a40ab08ddce2a2fa0aa80bf.tar.gz
zabbix-b6ecd0b1c0d40bca9a40ab08ddce2a2fa0aa80bf.tar.xz
zabbix-b6ecd0b1c0d40bca9a40ab08ddce2a2fa0aa80bf.zip
- added Clone functionality (Eugene)
- more PostgreSQL support - allow schama generation in any place calling git-svn-id: svn://svn.zabbix.com/trunk@3831 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/actionconf.php')
-rw-r--r--frontends/php/actionconf.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontends/php/actionconf.php b/frontends/php/actionconf.php
index a83fb43c..772b2b10 100644
--- a/frontends/php/actionconf.php
+++ b/frontends/php/actionconf.php
@@ -76,6 +76,7 @@ include_once "include/page_header.php";
"add_condition"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL),
"del_condition"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL),
"save"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL),
+ "clone"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL),
"delete"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL),
"cancel"=> array(T_ZBX_STR, O_OPT, P_SYS, NULL, NULL),
/* other */
@@ -94,7 +95,12 @@ include_once "include/page_header.php";
update_profile("web.actionconf.actiontype",$_REQUEST["actiontype"]);
?>
<?php
- if(isset($_REQUEST["save"]))
+ if(isset($_REQUEST["clone"]) && isset($_REQUEST["actionid"]))
+ {
+ unset($_REQUEST["actionid"]);
+ $_REQUEST["form"] = "clone";
+ }
+ elseif(isset($_REQUEST["save"]))
{
if($_REQUEST["repeat"]==0)
{