From 72f3c7f921603cba96dfa01979dc6221dd5324fe Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 23 Mar 2009 17:18:04 +0000 Subject: [PATCH] Fixes Journal#save signature (#3014). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2615 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/journal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/journal.rb b/app/models/journal.rb index 72e7eb91c5..a0e1ae8779 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