Merge pull request #7702 from rekonder/aj_SCI_10884

Fix handling of custom repository text on import for too many characters [SCI-10884]
This commit is contained in:
ajugo 2024-07-12 10:49:54 +02:00 committed by GitHub
commit c92fbe52e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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