diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-24 16:17:57 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-24 16:17:57 +0000 |
commit | 8065001c0db96c5cc0e1ea45b20b909fb84541fc (patch) | |
tree | d690aa4c876db2875a6e947d92444dc363c4625e /app/models/journal_detail.rb | |
parent | 72a58399314c6bc59c66aecc08dbaca838a7f2b6 (diff) | |
download | redmine-8065001c0db96c5cc0e1ea45b20b909fb84541fc.tar.gz redmine-8065001c0db96c5cc0e1ea45b20b909fb84541fc.zip |
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
Diffstat (limited to 'app/models/journal_detail.rb')
-rw-r--r-- | app/models/journal_detail.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/journal_detail.rb b/app/models/journal_detail.rb index 784e98bf7..831f953ae 100644 --- a/app/models/journal_detail.rb +++ b/app/models/journal_detail.rb @@ -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 |