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:
Daniel Rodriguez 2019-04-04 18:03:53 +02:00
commit c52b30fd7e
1 changed files with 7 additions and 0 deletions

View File

@ -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,