diff options
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r-- | app/models/journal.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index 6e7632e73..a68988a7b 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -28,4 +28,9 @@ class Journal < ActiveRecord::Base :include => :issue, :project_key => "#{Issue.table_name}.project_id", :date_column => "#{Issue.table_name}.created_on" + + def save + # Do not save an empty journal + (details.empty? && notes.blank?) ? false : super + end end |