summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-08 17:30:47 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-08 17:30:47 +0000
commit95810125bf1d3afe7803df2d812de6af1837ef62 (patch)
treeb95e88fd68d1802d285454c6a651807350744f87 /app
parent2462a8581de0090d609a45b0169890c052b15c3f (diff)
downloadredmine-95810125bf1d3afe7803df2d812de6af1837ef62.tar.gz
redmine-95810125bf1d3afe7803df2d812de6af1837ef62.zip
Don't create a journal when creating an issue with attachments.
git-svn-id: http://svn.redmine.org/redmine/trunk@13733 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/issues_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index ff04d0504..11b25435c 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -407,9 +407,9 @@ class IssuesController < ApplicationController
def build_new_issue_from_params
if params[:id].blank?
@issue = Issue.new
- @issue.init_journal(User.current)
if params[:copy_from]
begin
+ @issue.init_journal(User.current)
@copy_from = Issue.visible.find(params[:copy_from])
@link_copy = link_copy?(params[:link_copy]) || request.get?
@copy_attachments = params[:copy_attachments].present? || request.get?