Merge branch 'ent-6930-No-funciona-Min-number-of-alerts-Alerts-templates' into 'develop'

Ent 6930 no funciona min number of alerts alerts templates

See merge request artica/pandorafms!3785
This commit is contained in:
Daniel Rodriguez 2021-01-25 09:55:28 +01:00
commit 4d81396956
1 changed files with 5 additions and 1 deletions

View File

@ -1422,7 +1422,11 @@ if ($step == 2) {
case "unknown":
$("#template-value, #template-max, span#matches_value, #template-min").hide ();
$("#template-example").show ();
if ($("#text-min_alerts").val() > 0 ) {
unknown = <?php echo "'".__('The alert would fire when the module is in unknown status. Warning: unknown_updates of pandora_server.conf must be equal to 1')."'"; ?>;
}
/* Show example */
$("span#example").empty ().append (unknown);
break;