Merge branch 'ent-6053-error-envio-informe-mail-vista-informes' into 'develop'

Fixed report sendmail success message

See merge request artica/pandorafms!3353
This commit is contained in:
Daniel Rodriguez 2020-08-07 09:37:10 +02:00
commit bfe504b3be
1 changed files with 4 additions and 1 deletions

View File

@ -170,6 +170,7 @@ if ($schedule_report != '') {
$parameters[4] = get_parameter('report_type', '');
$parameters['first_execution'] = strtotime($date.' '.$time);
$values = [
'id_usuario' => $config['id_user'],
'id_user_task' => $id_user_task,
@ -180,9 +181,11 @@ if ($schedule_report != '') {
$result = db_process_sql_insert('tuser_task_scheduled', $values);
$report_type = $parameters[4];
ui_print_result_message(
$result,
__('Your report has been planned, and the system will email you a PDF with the report as soon as its finished'),
__('Your report has been planned, and the system will email you a '.$report_type.' file with the report as soon as its finished'),
__('An error has ocurred')
);
echo '<br>';