Avoid double escaping in user's name on protocol and step elements [SCI-8137] (#5150)

This commit is contained in:
Alex Kriuchykhin 2023-03-15 16:36:06 +01:00 committed by GitHub
parent fedd9e040e
commit f94c9e0b36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -107,6 +107,6 @@ class StepSerializer < ActiveModel::Serializer
end
def created_by
escape_input(object.user.full_name)
object.user.full_name
end
end