diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-21 09:59:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-21 09:59:12 +0000 |
commit | 4abc3179f588f03aba2e5c9d7a5fb29570dc2614 (patch) | |
tree | f2a00628a0075f11a0a6015b7b27cfe355bc16ad /app/views/issues/_attributes.html.erb | |
parent | 402d73914634e0e0a2ec06cc94e7b3ec13275546 (diff) | |
download | redmine-4abc3179f588f03aba2e5c9d7a5fb29570dc2614.tar.gz redmine-4abc3179f588f03aba2e5c9d7a5fb29570dc2614.zip |
Filter parent task issues in auto complete by open/closed status depending on the subtask status (#24877).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16243 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/_attributes.html.erb')
-rw-r--r-- | app/views/issues/_attributes.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/_attributes.html.erb b/app/views/issues/_attributes.html.erb index 224960617..640a00e0b 100644 --- a/app/views/issues/_attributes.html.erb +++ b/app/views/issues/_attributes.html.erb @@ -47,7 +47,7 @@ <div class="splitcontentright"> <% if @issue.safe_attribute? 'parent_issue_id' %> <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10, :required => @issue.required_attribute?('parent_issue_id') %></p> -<%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript auto_complete_issues_path(:project_id => @issue.project, :scope => Setting.cross_project_subtasks)}')" %> +<%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript auto_complete_issues_path(:project_id => @issue.project, :scope => Setting.cross_project_subtasks, :status => @issue.closed? ? 'c' : 'o', :issue_id => @issue.id)}')" %> <% end %> <% if @issue.safe_attribute? 'start_date' %> |