diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-03-02 19:43:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-03-02 19:43:36 +0000 |
commit | 502376f8eec9d9d9aee71c59cda002151a436328 (patch) | |
tree | 23d1cc0f426ad63c5166d6fb0e09e7c309d44154 /app/views/issue_relations | |
parent | 64b30de7875910390474610923b91b0e9c783287 (diff) | |
download | redmine-502376f8eec9d9d9aee71c59cda002151a436328.tar.gz redmine-502376f8eec9d9d9aee71c59cda002151a436328.zip |
Filter out current issue from the related issues autocomplete (#25055).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16350 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issue_relations')
-rw-r--r-- | app/views/issue_relations/_form.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issue_relations/_form.html.erb b/app/views/issue_relations/_form.html.erb index 29b7f0f14..3a1018c1b 100644 --- a/app/views/issue_relations/_form.html.erb +++ b/app/views/issue_relations/_form.html.erb @@ -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();" %> |