Merge pull request #8638 from artoscinote/ma_SCI_12105

Fix experiment description normalize method in serializer [SCI-12105]
This commit is contained in:
Martin Artnik 2025-07-04 12:05:03 +02:00 committed by GitHub
commit 0c22b76ab0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,8 @@ module Lists
# normalize description to handle legacy description newlines
def description
return unless object.description
# if description includes HTML, it is already in the new format.
return object.description if object.description.match?(/<(.|\n)*?>/)