From 4743c41871ed67cee89b4358fd02547e850aaeb2 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 17 Jul 2010 16:14:33 +0000 Subject: [PATCH] Fixed curr_defualt check --- gl/manage/currencies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl/manage/currencies.php b/gl/manage/currencies.php index c040e173..b14b79fd 100644 --- a/gl/manage/currencies.php +++ b/gl/manage/currencies.php @@ -101,7 +101,7 @@ function check_can_delete() return false; } - if (key_in_foreign_table($curr, 'company', 'curr_default', true)) + if ($curr == get_company_pref('curr_default')) { display_error(_("Cannot delete this currency, because the company preferences uses this currency.")); return false; -- 2.30.2