From 5c2a771954aa284e70ad942b40e50204172449d0 Mon Sep 17 00:00:00 2001 From: Gustavo Silva Date: Tue, 29 May 2018 16:34:42 -0400 Subject: [PATCH] HOR-4605: Ouput_Document > The documents are not being exported with their extensions --- workflow/engine/methods/cases/cases_ShowOutputDocument.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/engine/methods/cases/cases_ShowOutputDocument.php b/workflow/engine/methods/cases/cases_ShowOutputDocument.php index b786e3814..4d7927310 100644 --- a/workflow/engine/methods/cases/cases_ShowOutputDocument.php +++ b/workflow/engine/methods/cases/cases_ShowOutputDocument.php @@ -133,7 +133,7 @@ if (!$sw_file_exists) { $res['message'] = $info['basename'] . $ver . '.' . $ext; print G::json_encode( $res ); } else { - $nameFile = $info['basename'] . $ver . '.' . $ext; + $nameFile = G::inflect($info['basename'] . $ver) . '.' . $ext; $licensedFeatures = &PMLicensedFeatures::getSingleton(); $downloadStatus = false; /*----------------------------------********---------------------------------*/ @@ -159,7 +159,7 @@ if (!$sw_file_exists) { } /*----------------------------------********---------------------------------*/ if (!$downloadStatus) { - G::streamFile( $realPath, $download, G::inflect($nameFile)); //download + G::streamFile( $realPath, $download, $nameFile); //download } } }