0000877: Bug updating a GL account that is also a bank account.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 16 Jun 2011 21:41:15 +0000 (23:41 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 16 Jun 2011 21:41:15 +0000 (23:41 +0200)
gl/manage/gl_accounts.php

index 5d918cc8e8a1e559635abd2d8756a4a98c27e1b6..345d3791fa8a17e21e71fbfc15858e30286932e9 100644 (file)
@@ -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."));
                        }