Fix handling of custom repository text on import for too many characters [SCI-10884]

This commit is contained in:
Andrej 2024-07-11 16:19:19 +02:00
parent 544da61038
commit e46774cc3d

View file

@ -61,7 +61,7 @@ class RepositoryTextValue < ApplicationRecord
def self.import_from_text(text, attributes, _options = {})
return nil if text.blank?
new(attributes.merge(data: text.truncate(Constants::TEXT_MAX_LENGTH)))
new(attributes.merge(data: text))
end
alias export_formatted formatted