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
@users = [*@users, current_user]
end
if params[:author_id]
unless params[:author_id] == "false"
@users = [User.find(params[:author_id]), *@users]
end
......
......@@ -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
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