Permalink
Browse files

Fix migrating from Redmine 1.4 #1067

Contributed by Steffen Schüssler
  • Loading branch information...
thegcat committed Jul 9, 2012
1 parent e3dc444 commit d41c7f1e8c924f695e96a29cabedf89ea9a98a84
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/models/changeset.rb
View
@@ -89,12 +89,12 @@ def repository_encoding
# Attribute reader for committer that encodes the committer string to
# the repository log encoding (e.g. UTF-8)
def committer
- self.class.to_utf8(read_attribute(:committer), repository.repo_log_encoding)
+ self.class.to_utf8(read_attribute(:committer), repository_encoding)
end
def before_create
- self.committer = self.class.to_utf8(self.committer, repository.repo_log_encoding)
- self.comments = self.class.normalize_comments(self.comments, repository.repo_log_encoding)
+ self.committer = self.class.to_utf8(self.committer, repository_encoding)
+ self.comments = self.class.normalize_comments(self.comments, repository_encoding)
self.user = repository.find_committer_user(self.committer)
end

0 comments on commit d41c7f1

Please sign in to comment.