Insert zero into fires_min an fires_max when null
Former-commit-id: de1197159053155d4f962d74179933c46189460e
This commit is contained in:
parent
2d26a74f9e
commit
c07319fb70
|
@ -8794,7 +8794,14 @@ function api_set_alert_actions($id, $id2, $other, $trash1)
|
||||||
}
|
}
|
||||||
|
|
||||||
$firesMin = $other['data'][2];
|
$firesMin = $other['data'][2];
|
||||||
|
if (!$firesMin) {
|
||||||
|
$firesMin = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$firesMax = $other['data'][3];
|
$firesMax = $other['data'][3];
|
||||||
|
if (!$firesMax) {
|
||||||
|
$firesMax = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$values = [
|
$values = [
|
||||||
'id_alert_template_module' => $idAlertTemplateModule,
|
'id_alert_template_module' => $idAlertTemplateModule,
|
||||||
|
|
Loading…
Reference in New Issue