mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 23:25:31 +08:00
Fix experiment description normalize method in serializer [SCI-12105]
This commit is contained in:
parent
b2fd550f54
commit
5d27d03039
1 changed files with 2 additions and 0 deletions
|
@ -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)*?>/)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue