Extended account id's to 15 chars. Changed account type to varchar(10)
[fa-stable.git] / gl / manage / gl_account_types.php
index 57ab4a65730ca161b8a1462ed5d20962dcc84d4c..ef8207b1728afe9d969e19727afa7c8ec9d3c997 100644 (file)
@@ -58,7 +58,7 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM')
 
        if ($selected_id != -1) 
        {
-               if (update_account_type($selected_id, $_POST['name'], $_POST['class_id'], $_POST['parent']))
+               if (update_account_type($_POST['id'], $_POST['name'], $_POST['class_id'], $_POST['parent'], $_POST['old_id']))
                                display_notification(_('Selected account type has been updated'));
        } 
        else 
@@ -169,9 +169,10 @@ if ($selected_id != -1)
                $_POST['parent']  = $myrow["parent"];
                $_POST['class_id']  = $myrow["class_id"];
                hidden('selected_id', $selected_id);
+               hidden('old_id', $myrow["id"]);
        }
        hidden('id');
-       label_row(_("ID:"), $_POST['id']);
+       text_row_ex(_("ID:"), 'id', 10);
 }
 else
        text_row_ex(_("ID:"), 'id', 10);