X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fadjustments.php;h=fe72039205790b54bec9e627f23c44a552407daa;hb=159af00183e3732314b508729b06eae88721954c;hp=ba5dcf49fbcdbe83e1d9ac1f301b07222d78be4a;hpb=95ff74b5722826544743a01daf527aa3c9efe11a;p=fa-stable.git diff --git a/inventory/adjustments.php b/inventory/adjustments.php index ba5dcf49..fe720392 100644 --- a/inventory/adjustments.php +++ b/inventory/adjustments.php @@ -210,13 +210,16 @@ $id = find_submit('Delete'); if ($id != -1) handle_delete_item($id); -if (isset($_POST['AddItem']) && check_item_data()) +if (isset($_POST['AddItem']) && check_item_data()) { handle_new_item(); - -if (isset($_POST['UpdateItem']) && check_item_data()) + unset($_POST['selected_id']); +} +if (isset($_POST['UpdateItem']) && check_item_data()) { handle_update_item(); - + unset($_POST['selected_id']); +} if (isset($_POST['CancelItemChanges'])) { + unset($_POST['selected_id']); line_start_focus(); } //-----------------------------------------------------------------------------------------------