X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fadjustments.php;h=fe72039205790b54bec9e627f23c44a552407daa;hb=25379bdc9f10bda4aae4b37f04d16eb1bbe7e4f6;hp=ba5dcf49fbcdbe83e1d9ac1f301b07222d78be4a;hpb=f0e1edfccbf3608463c9da99b40f9c65fd298bb3;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(); } //-----------------------------------------------------------------------------------------------