From c139d13217349dfaf8aad9a6b38e611c92ff532b Mon Sep 17 00:00:00 2001 From: ssamko0911 Date: Tue, 25 Mar 2025 23:47:38 +0000 Subject: [PATCH] Fix #10650 - Currency field error in Reports module when exporting to PDF or Excel --- modules/AOW_WorkFlow/aow_utils.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/AOW_WorkFlow/aow_utils.php b/modules/AOW_WorkFlow/aow_utils.php index a380b340885..903e3d59eee 100755 --- a/modules/AOW_WorkFlow/aow_utils.php +++ b/modules/AOW_WorkFlow/aow_utils.php @@ -471,7 +471,13 @@ function getModuleField( } // hack to disable one of the js calls in this control if (isset($vardef['function']) && ($vardef['function'] == 'getCurrencyDropDown' || $vardef['function']['name'] == 'getCurrencyDropDown')) { - $contents .= "{literal}{/literal}"; + $excludeCases = [ + $_REQUEST['action'] === 'DownloadPDF' || $_REQUEST['action'] === 'Export', + ]; + + if (!in_array(true, $excludeCases, true)) { + $contents .= "{literal}{/literal}"; + } } // Save it to the cache file