Fixes Journal#save signature (#3014).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2615 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-03-23 17:18:04 +00:00
parent 80acb00454
commit 72f3c7f921
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class Journal < ActiveRecord::Base
:conditions => "#{Journal.table_name}.journalized_type = 'Issue' AND" +
" (#{JournalDetail.table_name}.prop_key = 'status_id' OR #{Journal.table_name}.notes <> '')"}
def save
def save(*args)
# Do not save an empty journal
(details.empty? && notes.blank?) ? false : super
end