Commit 80b67a79 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Indicate that `single_discussion` is optional

parent f8b5fef9
...@@ -134,7 +134,7 @@ module IssuesHelper ...@@ -134,7 +134,7 @@ module IssuesHelper
options_from_collection_for_select(options, 'name', 'title', params[:due_date]) options_from_collection_for_select(options, 'name', 'title', params[:due_date])
end end
def link_to_discussions_to_resolve(merge_request, single_discussion) def link_to_discussions_to_resolve(merge_request, single_discussion = nil)
link_text = merge_request.to_reference link_text = merge_request.to_reference
link_text += " (discussion #{single_discussion.first_note.id})" if single_discussion link_text += " (discussion #{single_discussion.first_note.id})" if single_discussion
......
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