mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 23:16:15 +08:00
Avoid double escaping in user's name on protocol and step elements [SCI-8137] (#5150)
This commit is contained in:
parent
fedd9e040e
commit
f94c9e0b36
|
@ -17,7 +17,7 @@ class ProtocolSerializer < ActiveModel::Serializer
|
|||
def added_by
|
||||
{
|
||||
avatar: object.added_by&.avatar_url(:icon_small),
|
||||
name: escape_input(object.added_by&.full_name)
|
||||
name: object.added_by&.full_name
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -107,6 +107,6 @@ class StepSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def created_by
|
||||
escape_input(object.user.full_name)
|
||||
object.user.full_name
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue