From 1326ae932e03507afda682a88faf4577e850439b Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 28 Mar 2009 15:14:09 +0000 Subject: [PATCH] Fixed bug [0000124] (cannot add exrate <1 when comma separator is set). --- CHANGELOG.txt | 5 +++++ gl/manage/exchange_rates.php | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b798ef8..924c6d1 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,11 @@ Legend: ! -> Note $ -> Affected files + +28-Mar-2009 Janusz Dobrowolski +# [0000124] Cannot add exchange rate <1 when comma is set as dec separator. +$ /gl/manage/exchange_rates.php + 27-Mar-2009 Janusz Dobrowolski # Fixed include file path in reports 104,303 $ /reporting/rep104.php diff --git a/gl/manage/exchange_rates.php b/gl/manage/exchange_rates.php index 493509f..55646fa 100644 --- a/gl/manage/exchange_rates.php +++ b/gl/manage/exchange_rates.php @@ -34,13 +34,7 @@ function check_data() set_focus('date_'); return false; } - if (!check_num('BuyRate', 0)) - { - display_error( _("The exchange rate must be numeric and greater than zero.")); - set_focus('BuyRate'); - return false; - } - if ($_POST['BuyRate'] <= 0) + if (input_num('BuyRate') <= 0) { display_error( _("The exchange rate cannot be zero or a negative number.")); set_focus('BuyRate'); -- 2.30.2