mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-12 08:04:34 +08:00
Merge pull request #8638 from artoscinote/ma_SCI_12105
Fix experiment description normalize method in serializer [SCI-12105]
This commit is contained in:
commit
0c22b76ab0
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