Fix experiment description normalize method in serializer [SCI-12105]

This commit is contained in:
Martin Artnik 2025-07-04 11:42:56 +02:00
parent b2fd550f54
commit 5d27d03039

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)*?>/)