]> source.dussan.org Git - redmine.git/commitdiff
Filter out current issue from the related issues autocomplete (#25055).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 2 Mar 2017 19:43:36 +0000 (19:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 2 Mar 2017 19:43:36 +0000 (19:43 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@16350 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issue_relations/_form.html.erb

index 29b7f0f147025e0fc79e37b64507947bf3f05798..3a1018c1b266d859d896cbbf194862ad6aab99f9 100644 (file)
@@ -9,6 +9,6 @@
 <%= link_to_function l(:button_cancel), '$("#new-relation-form").hide();'%>
 </p>
 
-<%= javascript_tag "observeAutocompleteField('relation_issue_to_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project, :scope => (Setting.cross_project_issue_relations? ? 'all' : nil))}')" %>
+<%= javascript_tag "observeAutocompleteField('relation_issue_to_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project, :scope => (Setting.cross_project_issue_relations? ? 'all' : nil), :issue_id => @issue.id)}')" %>
 
 <%= javascript_tag "setPredecessorFieldsVisibility();" %>