Commit 72f3c7f9 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixes Journal#save signature (#3014).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2615 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 80acb004
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment