5a8873f362
Always read diff_view setting from the cookie Prior, when the user had their view set to "parallel" and then visited a merge request's changes tab _without_ passing the `view` parameter via query string, the view would be parallel but the `Notes` class was always instantiated with the default value from `diff_view` ("inline"), resulting in broken markup when the form to add a line note was dynamically inserted. The cookie is set whenever the view is changed, so this value should always be up-to-date. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/14557 and https://gitlab.com/gitlab-org/gitlab-ce/issues/15285 See merge request !3732 |
||
---|---|---|
.. | ||
avatars_controller_spec.rb | ||
blame_controller_spec.rb | ||
branches_controller_spec.rb | ||
commit_controller_spec.rb | ||
commits_controller_spec.rb | ||
compare_controller_spec.rb | ||
find_file_controller_spec.rb | ||
forks_controller_spec.rb | ||
group_links_controller_spec.rb | ||
imports_controller_spec.rb | ||
issues_controller_spec.rb | ||
merge_requests_controller_spec.rb | ||
milestones_controller_spec.rb | ||
notification_settings_controller_spec.rb | ||
project_members_controller_spec.rb | ||
protected_branches_controller_spec.rb | ||
raw_controller_spec.rb | ||
refs_controller_spec.rb | ||
repositories_controller_spec.rb | ||
services_controller_spec.rb | ||
snippets_controller_spec.rb | ||
tree_controller_spec.rb | ||
uploads_controller_spec.rb |