Merge branch 'ent-6036-Error-en-edicion-de-acciones-de-alerta' into 'develop'

fix empty check condition

See merge request artica/pandorafms!3359
This commit is contained in:
Daniel Rodriguez 2020-08-07 09:46:09 +02:00
commit 1ab4e89a14
1 changed files with 2 additions and 2 deletions

View File

@ -283,12 +283,12 @@ for ($i = 1; $i <= $config['max_macro_fields']; $i++) {
// Store the value in a hidden to keep it on first execution
$table->data['field'.$i][1] .= html_print_input_hidden(
'field'.$i.'_value',
!empty($action['field'.$i]) ? $action['field'.$i] : '',
(!empty($action['field'.$i]) || $action['field'.$i] == 0) ? $action['field'.$i] : '',
true
);
$table->data['field'.$i][2] .= html_print_input_hidden(
'field'.$i.'_recovery_value',
!empty($action['field'.$i.'_recovery']) ? $action['field'.$i.'_recovery'] : '',
(!empty($action['field'.$i.'_recovery']) || $action['field'.$i] == 0) ? $action['field'.$i.'_recovery'] : '',
true
);
}