Merge branch 'ent-4478-no-carga-valores-actuales-al-editar-accion-alerta' into 'develop'

Fixed alert actions bug

See merge request artica/pandorafms!2636
This commit is contained in:
Daniel Rodriguez 2019-09-03 17:08:17 +02:00
commit a5fe2a913f
1 changed files with 6 additions and 6 deletions

View File

@ -159,10 +159,10 @@ if ($show_update_action_menu) {
$id_action = (int) get_parameter('id_action'); $id_action = (int) get_parameter('id_action');
$actions = alerts_get_alert_agent_module_actions($id_alert); $actions = alerts_get_alert_agent_module_actions($id_alert);
$action_opction = db_get_row( $action_option = db_get_row(
'talert_template_module_actions', 'talert_template_module_actions',
'id_alert_template_module', 'id',
$id_alert $id_action
); );
$data .= '<form id="update_action-'.$alert['id'].'" method="post">'; $data .= '<form id="update_action-'.$alert['id'].'" method="post">';
@ -242,7 +242,7 @@ if ($show_update_action_menu) {
$data .= '<td class="datos">'; $data .= '<td class="datos">';
$data .= html_print_input_text( $data .= html_print_input_text(
'fires_min_ajax', 'fires_min_ajax',
$action_opction['fires_min'], $action_option['fires_min'],
'', '',
4, 4,
10, 10,
@ -251,7 +251,7 @@ if ($show_update_action_menu) {
$data .= ' '.__('to').' '; $data .= ' '.__('to').' ';
$data .= html_print_input_text( $data .= html_print_input_text(
'fires_max_ajax', 'fires_max_ajax',
$action_opction['fires_max'], $action_option['fires_max'],
'', '',
4, 4,
10, 10,
@ -266,7 +266,7 @@ if ($show_update_action_menu) {
$data .= '<td class="datos2">'; $data .= '<td class="datos2">';
$data .= html_print_input_text( $data .= html_print_input_text(
'module_action_threshold_ajax', 'module_action_threshold_ajax',
$action_opction['module_action_threshold'], $action_option['module_action_threshold'],
'', '',
4, 4,
10, 10,