diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-14 08:03:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-14 08:03:51 +0000 |
commit | 3da7b1bc2882cfb02c5068680979158322242398 (patch) | |
tree | 87ed265520ff93243dbd7c1074e47f5e37c7abac /app/helpers | |
parent | b17883a2dff6cd49ea407b449ac0e97dca38e56a (diff) | |
download | redmine-3da7b1bc2882cfb02c5068680979158322242398.tar.gz redmine-3da7b1bc2882cfb02c5068680979158322242398.zip |
Implements /issues/new form for creating issues outside a project (#1003).
git-svn-id: http://svn.redmine.org/redmine/trunk@13999 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/issues_helper.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index e34039d76..a88adceb9 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -202,10 +202,15 @@ module IssuesHelper # Returns the path for updating the issue form # with project as the current project def update_issue_form_path(project, issue) + options = {:format => 'js'} if issue.new_record? - new_project_issue_path(project, :format => 'js') + if project + new_project_issue_path(project, options) + else + new_issue_path(options) + end else - edit_issue_path(issue, :format => 'js') + edit_issue_path(issue, options) end end |