Merge branch 'ent-3784-error-creating-alert-actions-api' into 'develop'
Insert zero into fires_min an fires_max when null See merge request artica/pandorafms!2318 Former-commit-id: b7d8c6738530e1d842be34ad7f81c31a898d1c76
This commit is contained in:
commit
c52b30fd7e
|
@ -8794,7 +8794,14 @@ function api_set_alert_actions($id, $id2, $other, $trash1)
|
|||
}
|
||||
|
||||
$firesMin = $other['data'][2];
|
||||
if (!$firesMin) {
|
||||
$firesMin = 0;
|
||||
}
|
||||
|
||||
$firesMax = $other['data'][3];
|
||||
if (!$firesMax) {
|
||||
$firesMax = 0;
|
||||
}
|
||||
|
||||
$values = [
|
||||
'id_alert_template_module' => $idAlertTemplateModule,
|
||||
|
|
Loading…
Reference in New Issue