summaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-01 07:39:00 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-01 07:39:00 +0000
commitccf3d12a93aa71836ba46bfd7e2fd5f23fa81e5c (patch)
treef6b4dfc1a41d74bb859d19ecaf1d77d30ad4095a /frontends
parent81c87391ff94d185ec4c5fcc3ab7b9c2ae9d5f4d (diff)
downloadzabbix-ccf3d12a93aa71836ba46bfd7e2fd5f23fa81e5c.tar.gz
zabbix-ccf3d12a93aa71836ba46bfd7e2fd5f23fa81e5c.tar.xz
zabbix-ccf3d12a93aa71836ba46bfd7e2fd5f23fa81e5c.zip
- fixed delay_flex (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3549 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends')
-rw-r--r--frontends/php/include/forms.inc.php44
1 files changed, 24 insertions, 20 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index 3714dd79..635c82c7 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -789,26 +789,30 @@
}
$delay_flex_el = array();
- $i = 0;
- foreach($delay_flex as $val)
- {
- if(!isset($val["delay"]) && !isset($val["period"])) continue;
- array_push($delay_flex_el,
- array(
- new CCheckBox("rem_delay_flex[]", 'no', null,$i),
- $val["delay"],
- " sec at ",
- $val["period"]
- ),
- BR);
- $frmItem->AddVar("delay_flex[".$i."][delay]", $val['delay']);
- $frmItem->AddVar("delay_flex[".$i."][period]", $val['period']);
- $i++;
- if($i >= 7) break; /* limit count of intervals
- * 7 intervals by 30 symbols = 210 characters
- * db storage field is 256
- */
+ if($type != ITEM_TYPE_TRAPPER)
+ {
+ $i = 0;
+ foreach($delay_flex as $val)
+ {
+ if(!isset($val["delay"]) && !isset($val["period"])) continue;
+
+ array_push($delay_flex_el,
+ array(
+ new CCheckBox("rem_delay_flex[]", 'no', null,$i),
+ $val["delay"],
+ " sec at ",
+ $val["period"]
+ ),
+ BR);
+ $frmItem->AddVar("delay_flex[".$i."][delay]", $val['delay']);
+ $frmItem->AddVar("delay_flex[".$i."][period]", $val['period']);
+ $i++;
+ if($i >= 7) break; /* limit count of intervals
+ * 7 intervals by 30 symbols = 210 characters
+ * db storage field is 256
+ */
+ }
}
if(count($delay_flex_el)==0)
@@ -984,7 +988,7 @@
else
{
$frmItem->AddVar("delay",$delay);
- $frmItem->AddVar("delay_flex[]","");
+ $frmItem->AddVar("delay_flex",null);
}
$frmItem->AddRow(S_KEEP_HISTORY_IN_DAYS, array(