Skip to content
Snippets Groups Projects
Unverified Commit 455a7540 authored by trwnh's avatar trwnh Committed by GitHub
Browse files

Fix missing cast of status and rule IDs to string (fix #19048) (#20122)

parent 68d9dcd4
No related branches found
No related tags found
No related merge requests found
...@@ -9,4 +9,12 @@ class REST::ReportSerializer < ActiveModel::Serializer ...@@ -9,4 +9,12 @@ class REST::ReportSerializer < ActiveModel::Serializer
def id def id
object.id.to_s object.id.to_s
end end
def status_ids
object&.status_ids&.map(&:to_s)
end
def rule_ids
object&.rule_ids&.map(&:to_s)
end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment