Commit dac959fc authored by Thong Kuah's avatar Thong Kuah

Fix NotesController in EE failing since 16fe447d

16fe447d:modified how NotesActions normalized notes params on creation.
Update this controller to always override :target_type and :target_id
parent 0cd6474a
......@@ -47,9 +47,7 @@ class Groups::Epics::NotesController < Groups::ApplicationController
end
def normalize_create_params
params[:note].try do |note|
note[:noteable_id] = epic.id
note[:noteable_type] = 'Epic'
end
params[:target_type] = 'Epic'
params[:target_id] = epic.id
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