summaryrefslogtreecommitdiffstats
path: root/app/models/change.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/change.rb')
-rw-r--r--app/models/change.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/change.rb b/app/models/change.rb
index f512ad036..c7edd1668 100644
--- a/app/models/change.rb
+++ b/app/models/change.rb
@@ -21,8 +21,8 @@ class Change < ApplicationRecord
belongs_to :changeset
validates_presence_of :changeset_id, :action, :path
- before_save :init_path
before_validation :replace_invalid_utf8_of_path
+ before_save :init_path
def replace_invalid_utf8_of_path
self.path = Redmine::CodesetUtil.replace_invalid_utf8(self.path)