Fixed: unable to add a file to an issue without entering a note.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@853 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-10-19 19:09:47 +00:00
parent ecfc40629f
commit 0e4e0a795a
3 changed files with 21 additions and 16 deletions
+5
View File
@@ -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