summaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
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(