diff --git a/pandora_console/godmode/alerts/configure_alert_action.php b/pandora_console/godmode/alerts/configure_alert_action.php index fd0f90d115..c8efca1f00 100644 --- a/pandora_console/godmode/alerts/configure_alert_action.php +++ b/pandora_console/godmode/alerts/configure_alert_action.php @@ -694,10 +694,19 @@ $(document).ready (function () { } } else { + var is_element_select = $("[name=field" + i + "_value]").is("select"); + $("[name=field" + i + "_value]").val(old_value); - $("[name=field" + i + "_value]").trigger('change'); + if (is_element_select === true) { + $("[name=field" + i + "_value]").trigger('change'); + } + + $("[name=field" + i + "_recovery_value]").val(old_recovery_value); - $("[name=field" + i + "_recovery_value]").trigger('change'); + + if (is_element_select === true) { + $("[name=field" + i + "_recovery_value]").trigger('change'); + } } } else {