BigW Consortium Gitlab

Commit 829830ae by Zeger-Jan van de Weg Committed by Zeger-Jan van de Weg

Fix loading data when no author_id is passed

parent df27b3a1
...@@ -15,7 +15,7 @@ class AutocompleteController < ApplicationController ...@@ -15,7 +15,7 @@ class AutocompleteController < ApplicationController
@users = [*@users, current_user] @users = [*@users, current_user]
end end
if params[:author_id] unless params[:author_id] == "false"
@users = [User.find(params[:author_id]), *@users] @users = [User.find(params[:author_id]), *@users]
end end
......
...@@ -23,8 +23,8 @@ module MergeRequests ...@@ -23,8 +23,8 @@ module MergeRequests
private private
def filter_params(issueable = nil) def filter_params(issuable = nil)
super(:merge_request, issueable) super(:merge_request, issuable)
end end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment