From 7e1616a110f791cd378ad803446181e4d9178464 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 16 Jun 2011 23:41:15 +0200 Subject: [PATCH] 0000877: Bug updating a GL account that is also a bank account. --- gl/manage/gl_accounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl/manage/gl_accounts.php b/gl/manage/gl_accounts.php index 5d918cc..345d379 100644 --- a/gl/manage/gl_accounts.php +++ b/gl/manage/gl_accounts.php @@ -76,7 +76,7 @@ if (isset($_POST['add']) || isset($_POST['update'])) if ($selected_account) { - if (check_value('inactive') && is_bank_account($_POST['account_code'])) + if (get_post('inactive') == 1 && is_bank_account($_POST['account_code'])) { display_error(_("The account belongs to a bank account and cannot be inactivated.")); } -- 2.30.2