projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rerun. Stuff forgotten.
[fa-stable.git]
/
gl
/
manage
/
gl_account_types.php
diff --git
a/gl/manage/gl_account_types.php
b/gl/manage/gl_account_types.php
index ef8207b1728afe9d969e19727afa7c8ec9d3c997..171bf83f6504758b982d7352774830538fc6b953 100644
(file)
--- a/
gl/manage/gl_account_types.php
+++ b/
gl/manage/gl_account_types.php
@@
-26,12
+26,12
@@
function can_process()
{
global $selected_id;
{
global $selected_id;
- if (!input_num('id'))
+
/*
if (!input_num('id'))
{
display_error( _("The account id must be an integer and cannot be empty."));
set_focus('id');
return false;
{
display_error( _("The account id must be an integer and cannot be empty."));
set_focus('id');
return false;
- }
+ }
*/
if (strlen($_POST['name']) == 0)
{
display_error( _("The account group name cannot be empty."));
if (strlen($_POST['name']) == 0)
{
display_error( _("The account group name cannot be empty."));
@@
-120,7
+120,7
@@
$result = get_account_types(check_value('show_inactive'));
start_form();
start_table($table_style);
start_form();
start_table($table_style);
-$th = array(_("
ID"), _("
Name"), _("Subgroup Of"), _("Class Type"), "", "");
+$th = array(_("
Group ID"), _("Group
Name"), _("Subgroup Of"), _("Class Type"), "", "");
inactive_control_column($th);
table_header($th);
inactive_control_column($th);
table_header($th);
@@
-132,7
+132,7
@@
while ($myrow = db_fetch($result))
$bs_text = get_account_class_name($myrow["class_id"]);
$bs_text = get_account_class_name($myrow["class_id"]);
- if ($myrow["parent"] ==
ANY_NUMERIC
)
+ if ($myrow["parent"] ==
'0' || $myrow["parent"] == '-1'
)
{
$parent_text = "";
}
{
$parent_text = "";
}