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 ...@@ -47,9 +47,7 @@ class Groups::Epics::NotesController < Groups::ApplicationController
end end
def normalize_create_params def normalize_create_params
params[:note].try do |note| params[:target_type] = 'Epic'
note[:noteable_id] = epic.id params[:target_id] = epic.id
note[:noteable_type] = 'Epic'
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