diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-24 18:26:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-24 18:26:42 +0000 |
commit | 4967fa8733e220e2220fdd546df3b46ef5725ac9 (patch) | |
tree | 0a0439a9cfd6be905c9884d497b272bc12bf2477 /app/models/journal_detail.rb | |
parent | 8065001c0db96c5cc0e1ea45b20b909fb84541fc (diff) | |
download | redmine-4967fa8733e220e2220fdd546df3b46ef5725ac9.tar.gz redmine-4967fa8733e220e2220fdd546df3b46ef5725ac9.zip |
Journal details truncated only if values are strings
git-svn-id: http://redmine.rubyforge.org/svn/trunk@478 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal_detail.rb')
-rw-r--r-- | app/models/journal_detail.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/journal_detail.rb b/app/models/journal_detail.rb index 831f953ae..58239006b 100644 --- a/app/models/journal_detail.rb +++ b/app/models/journal_detail.rb @@ -19,7 +19,7 @@ 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 + self.value = value[0..254] if value && value.is_a?(String) + self.old_value = old_value[0..254] if old_value && old_value.is_a?(String) end end |