Fixed 10335 Error in journalizing an issue with longtext custom fields (Postgresql)

git-svn-id: http://redmine.rubyforge.org/svn/trunk@477 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-04-24 16:17:57 +00:00
parent 72a5839931
commit 8065001c0d
1 changed files with 5 additions and 0 deletions

View File

@ -17,4 +17,9 @@
class JournalDetail < ActiveRecord::Base
belongs_to :journal
def before_save
self.value = value[0..254] if value
self.old_value = old_value[0..254] if old_value
end
end