]> source.dussan.org Git - redmine.git/commitdiff
Fixes Journal#save signature (#3014).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 23 Mar 2009 17:18:04 +0000 (17:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 23 Mar 2009 17:18:04 +0000 (17:18 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2615 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/journal.rb

index 72e7eb91c59079992b7745253a3b4895fffd7e56..a0e1ae8779ef4f6d7e16529df7aaefce55b8aa86 100644 (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