mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 08:21:37 +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
2 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ class ProtocolSerializer < ActiveModel::Serializer
|
||||||
def added_by
|
def added_by
|
||||||
{
|
{
|
||||||
avatar: object.added_by&.avatar_url(:icon_small),
|
avatar: object.added_by&.avatar_url(:icon_small),
|
||||||
name: escape_input(object.added_by&.full_name)
|
name: object.added_by&.full_name
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,6 @@ class StepSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def created_by
|
def created_by
|
||||||
escape_input(object.user.full_name)
|
object.user.full_name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue