projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0000877: Bug updating a GL account that is also a bank account.
[fa-stable.git]
/
gl
/
manage
/
gl_accounts.php
diff --git
a/gl/manage/gl_accounts.php
b/gl/manage/gl_accounts.php
index 097eddebf5c890267e8973c42bc328cce69927b9..345d3791fa8a17e21e71fbfc15858e30286932e9 100644
(file)
--- a/
gl/manage/gl_accounts.php
+++ b/
gl/manage/gl_accounts.php
@@
-12,7
+12,7
@@
$page_security = 'SA_GLACCOUNT';
$path_to_root = "../..";
include($path_to_root . "/includes/session.inc");
$page_security = 'SA_GLACCOUNT';
$path_to_root = "../..";
include($path_to_root . "/includes/session.inc");
-
+
page(_($help_context = "Chart of Accounts"));
include($path_to_root . "/includes/ui.inc");
page(_($help_context = "Chart of Accounts"));
include($path_to_root . "/includes/ui.inc");
@@
-76,7
+76,7
@@
if (isset($_POST['add']) || isset($_POST['update']))
if ($selected_account)
{
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."));
}
{
display_error(_("The account belongs to a bank account and cannot be inactivated."));
}