summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-08 17:18:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-08 17:18:28 +0000
commit2462a8581de0090d609a45b0169890c052b15c3f (patch)
tree9e18a1818c9b8f3f074e20b8a50066561606fcb2 /app
parentee173b64b831bd297e6d4204e17d14dbe0448137 (diff)
downloadredmine-2462a8581de0090d609a45b0169890c052b15c3f.tar.gz
redmine-2462a8581de0090d609a45b0169890c052b15c3f.zip
Don't create a journal when creating an issue.
git-svn-id: http://svn.redmine.org/redmine/trunk@13732 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/journal.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb
index 681bd9b94..76731986c 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -52,10 +52,13 @@ class Journal < ActiveRecord::Base
def initialize(*args)
super
- if journalized && journalized.new_record?
- self.notify = false
+ if journalized
+ if journalized.new_record?
+ self.notify = false
+ else
+ start
+ end
end
- start
end
def save(*args)