From a32822477170bf57a482365b8c6c47bd617147e3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 13 Feb 2015 20:00:22 +0000 Subject: Removed IssuesController#update_form action, use #new and #edit instead. git-svn-id: http://svn.redmine.org/redmine/trunk@13997 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/issues_helper.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/helpers') diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 885b1c5b1..e34039d76 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -199,6 +199,16 @@ module IssuesHelper s.html_safe end + # Returns the path for updating the issue form + # with project as the current project + def update_issue_form_path(project, issue) + if issue.new_record? + new_project_issue_path(project, :format => 'js') + else + edit_issue_path(issue, :format => 'js') + end + end + # Returns the number of descendants for an array of issues def issues_descendant_count(issues) ids = issues.reject(&:leaf?).map {|issue| issue.descendants.ids}.flatten.uniq -- cgit v1.2.3