summaryrefslogtreecommitdiffstats
path: root/app/views/issues/_form.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/issues/_form.rhtml')
-rw-r--r--app/views/issues/_form.rhtml5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/views/issues/_form.rhtml b/app/views/issues/_form.rhtml
index 1e3beaf85..ccb7a55a3 100644
--- a/app/views/issues/_form.rhtml
+++ b/app/views/issues/_form.rhtml
@@ -9,10 +9,7 @@
<% unless (@issue.new_record? && @issue.parent_issue_id.nil?) || !User.current.allowed_to?(:manage_subtasks, @project) %>
<p><%= f.text_field :parent_issue_id, :size => 10 %></p>
<div id="parent_issue_candidates" class="autocomplete"></div>
-<%= javascript_tag "observeParentIssueField('#{url_for(:controller => :issues,
- :action => :auto_complete,
- :id => @issue,
- :project_id => @project) }')" %>
+<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %>
<% end %>
<p><%= f.text_area :description,