Skip to content

Commit

Permalink
Merge pull request #16974 from top4ek/patch-1
Browse files Browse the repository at this point in the history
Fix CostType redirect to index after deletion.
  • Loading branch information
ulferts authored Oct 16, 2024
2 parents 15fad25 + e9e15cd commit 0c7c61a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def destroy
else
raise ActiveRecord::RecordNotFound
end
redirect_to action: "index", default: 1
redirect_to action: "index", default: 1, id: nil
end

##
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
end

it "redirected" do
expect(response).to have_http_status(:redirect)
expect(response).to redirect_to(cost_reports_url(default: 1))
end
end

Expand Down

0 comments on commit 0c7c61a

Please sign in to comment.