X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fgl_account_types.php;h=ef8207b1728afe9d969e19727afa7c8ec9d3c997;hb=3d154c1be37111f3659ad0d1a28b2576a51fdd38;hp=57ab4a65730ca161b8a1462ed5d20962dcc84d4c;hpb=a89a931c794c7dfc6c390dfba429b21874bb977b;p=fa-stable.git diff --git a/gl/manage/gl_account_types.php b/gl/manage/gl_account_types.php index 57ab4a65..ef8207b1 100644 --- a/gl/manage/gl_account_types.php +++ b/gl/manage/gl_account_types.php @@ -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);