summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-11-08 14:11:39 +0000
committerRémy Coutable <remy@rymai.me>2016-11-08 14:11:39 +0000
commitf8988b3d4909c4ebef3ab57bdf7e02716360b274 (patch)
tree998f806e9da3bf17f2d65e794cdf41d76f89b8f1 /app
parent5db9c791e54b21e4cf440e4615f3b08e2ba4dd13 (diff)
parentebc44befdc773b39a171d38dc13c38cd6630828a (diff)
downloadgitlab-ce-f8988b3d4909c4ebef3ab57bdf7e02716360b274.tar.gz
Merge branch '24255-search-fix' into 'master'
Fix broken commits search ## What does this MR do? Fixes commits search ## What are the relevant issue numbers? Closes #24255 See merge request !7339
Diffstat (limited to 'app')
-rw-r--r--app/controllers/search_controller.rb2
-rw-r--r--app/views/search/results/_commit.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index d01e0dedf52..b666aa01d6b 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -16,7 +16,7 @@ class SearchController < ApplicationController
@group = nil unless can?(current_user, :read_group, @group)
end
- return if params[:search].nil? || params[:search].blank?
+ return if params[:search].blank?
@search_term = params[:search]
diff --git a/app/views/search/results/_commit.html.haml b/app/views/search/results/_commit.html.haml
index 5b2d83d6b92..f34eaf89027 100644
--- a/app/views/search/results/_commit.html.haml
+++ b/app/views/search/results/_commit.html.haml
@@ -1 +1 @@
-= render 'projects/commits/commit', project: @project, commit: commit
+= render 'projects/commits/commit', project: @project, commit: commit, ref: nil