Skip to content
Snippets Groups Projects
Commit 829830ae authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg Committed by Zeger-Jan van de Weg
Browse files

Fix loading data when no author_id is passed

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