diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-13 20:00:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-13 20:00:22 +0000 |
commit | a32822477170bf57a482365b8c6c47bd617147e3 (patch) | |
tree | 1efcf22510a985f3f0afb607610a45f7e7b79e33 /app/helpers | |
parent | 37aa016740399f2adffe43a509571b13e9025b9b (diff) | |
download | redmine-a32822477170bf57a482365b8c6c47bd617147e3.tar.gz redmine-a32822477170bf57a482365b8c6c47bd617147e3.zip |
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
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/issues_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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 |