-
- Downloads
There was an error fetching the commit references. Please try again later.
Fix diff commenting results just after changing view
When you change the diff view (inline / side-by-side), we set a cookie based on that new view. When you add a comment, we choose the style to use in the response based on that cookie. However, when you have just changed diff style, the request cookie will contain the old value, so we should use the view param instead.
Showing
- app/helpers/diff_helper.rb 1 addition, 1 deletionapp/helpers/diff_helper.rb
- changelogs/unreleased/35695-comment-appears-in-a-wrong-place-after-changing-diff-view-to-inline.yml 4 additions, 0 deletions...s-in-a-wrong-place-after-changing-diff-view-to-inline.yml
- spec/helpers/diff_helper_spec.rb 15 additions, 2 deletionsspec/helpers/diff_helper_spec.rb
Please register or sign in to comment