diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-03-23 17:18:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-03-23 17:18:04 +0000 |
commit | 72f3c7f921603cba96dfa01979dc6221dd5324fe (patch) | |
tree | 0a678ef7eceaefbd6ae99b1e218f80883cd847a3 /app/models/journal.rb | |
parent | 80acb00454114af5343dc18d0e589fac0df44e20 (diff) | |
download | redmine-72f3c7f921603cba96dfa01979dc6221dd5324fe.tar.gz redmine-72f3c7f921603cba96dfa01979dc6221dd5324fe.zip |
Fixes Journal#save signature (#3014).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2615 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r-- | app/models/journal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index 72e7eb91c..a0e1ae877 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -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 |