summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2016-07-20 14:32:01 +0000
committerJacob Schatz <jschatz@gitlab.com>2016-07-20 14:32:01 +0000
commita337ae07421c863fbc76a60063fceee6d53652f8 (patch)
tree65795ec33d47635f944d0f1002c584a56a8e9525 /app
parent6623d36b65a87f8db9d35a83f832ee2e0564f8b1 (diff)
parenta9d5b07769b56286903534cde0fcf8e6063c8eb0 (diff)
downloadgitlab-ce-a337ae07421c863fbc76a60063fceee6d53652f8.tar.gz
Merge branch 'compare-code-view' into 'master'
Apply diff view cookie on compare ## What does this MR do? Correctly respects the code view changing when comparing 2 refs. ## What are the relevant issue numbers? Closes #19573 ## Screenshots (if relevant) ![Screen_Shot_2016-07-07_at_12.38.07](/uploads/b6da78cc2bbc2c79dbe8292037176c1a/Screen_Shot_2016-07-07_at_12.38.07.png) ![Screen_Shot_2016-07-07_at_12.38.17](/uploads/977f8b697c65bdb1701db11a39287ac6/Screen_Shot_2016-07-07_at_12.38.17.png) See merge request !5135
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/compare_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects/compare_controller.rb b/app/controllers/projects/compare_controller.rb
index 5f3ee71444d..10749d0fef8 100644
--- a/app/controllers/projects/compare_controller.rb
+++ b/app/controllers/projects/compare_controller.rb
@@ -15,6 +15,7 @@ class Projects::CompareController < Projects::ApplicationController
end
def show
+ apply_diff_view_cookie!
end
def diff_for_path