Fixed bug in exchange rate display helper.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 9 Oct 2017 08:21:21 +0000 (10:21 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 9 Oct 2017 08:21:21 +0000 (10:21 +0200)
includes/ui/ui_view.inc

index 389ea5302d389acb3a17b12996edd409656ade79..37c17432a85b6051e2ee219f1d26d4d288158c41 100644 (file)
@@ -278,7 +278,7 @@ function exchange_rate_display($from_currency, $to_currency, $date_, $force_edit
 
        if ($from_currency != $to_currency)
        {
-               $rate = get_post('_ex_rate');
+               $rate = input_num('_ex_rate');
                if (check_ui_refresh() || !$rate) { // readonly or ui context changed
                        $comp_currency = get_company_currency();
                        if ($from_currency == $comp_currency)