mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Merge branch 'ent-8631-no-se-disparan-las-alertas-correladas-con-schedule-en-formato-antiguo' into 'develop'
extra checks before translate See merge request artica/pandorafms!4722
This commit is contained in:
commit
d1cc6f6295
@ -551,7 +551,11 @@ sub pandora_evaluate_alert ($$$$$$$;$$$$) {
|
|||||||
return $status if ($alert->{$DayNames[$wday]} != 1);
|
return $status if ($alert->{$DayNames[$wday]} != 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
my $schedule = PandoraFMS::Tools::p_decode_json($pa_config, $alert->{'schedule'});
|
my $schedule;
|
||||||
|
if (defined($alert->{'schedule'} && $alert->{'schedule'} != '')) {
|
||||||
|
$schedule = PandoraFMS::Tools::p_decode_json($pa_config, $alert->{'schedule'});
|
||||||
|
}
|
||||||
|
|
||||||
if (defined($schedule)) {
|
if (defined($schedule)) {
|
||||||
# New behaviour.
|
# New behaviour.
|
||||||
return $status unless defined($schedule) && ref $schedule eq "HASH";
|
return $status unless defined($schedule) && ref $schedule eq "HASH";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user