diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-10-11 16:57:32 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-10-11 16:57:32 +0000 |
commit | ac20f3bd016e7d596b47a7dc98ec07821e9e26f5 (patch) | |
tree | a458ddc7073dc5884ea3c57ef07b86e699f1204f /frontends/php/actions.php | |
parent | 0c229c4ffffb0f8d8092f6c3a848f365abfd2bdc (diff) | |
download | zabbix-ac20f3bd016e7d596b47a7dc98ec07821e9e26f5.tar.gz zabbix-ac20f3bd016e7d596b47a7dc98ec07821e9e26f5.tar.xz zabbix-ac20f3bd016e7d596b47a7dc98ec07821e9e26f5.zip |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2173 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/actions.php')
-rw-r--r-- | frontends/php/actions.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/frontends/php/actions.php b/frontends/php/actions.php index e812f8ed..86a998df 100644 --- a/frontends/php/actions.php +++ b/frontends/php/actions.php @@ -40,7 +40,12 @@ { if($_GET["register"]=="add") { - if($_GET["repeat"]==0) $_GET["maxrepeats"]=0; + if($_GET["repeat"]==0) + { + $_GET["maxrepeats"]=0; + $_GET["repeatdelay"]=600; + } + $actionid=add_action( $_GET["triggerid"], $_GET["userid"], $_GET["good"], $_GET["delay"], $_GET["subject"], $_GET["message"],$_GET["scope"],$_GET["severity"],$_GET["recipient"],$_GET["usrgrpid"],$_GET["maxrepeats"],$_GET["repeatdelay"]); add_action_to_linked_hosts($actionid); show_messages($actionid,S_ACTION_ADDED,S_CANNOT_ADD_ACTION); @@ -60,7 +65,11 @@ } if($_GET["register"]=="update") { - if($_GET["repeat"]==0) $_GET["maxrepeats"]=0; + if($_GET["repeat"]==0) + { + $_GET["maxrepeats"]=0; + $_GET["repeatdelay"]=600; + } $result=update_action( $_GET["actionid"], $_GET["triggerid"], $_GET["userid"], $_GET["good"], $_GET["delay"], $_GET["subject"], $_GET["message"],$_GET["scope"],$_GET["severity"],$_GET["recipient"],$_GET["usrgrpid"],$_GET["maxrepeats"],$_GET["repeatdelay"]); show_messages($result,S_ACTION_UPDATED,S_CANNOT_UPDATE_ACTION); if($result) |