Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16350
e93f8b46-1217-0410-a6f0-
8f06a7374b81
<%= 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();" %>