From 455a754081cd5ba7b5b4979cc62cb1d2f7867ed5 Mon Sep 17 00:00:00 2001 From: trwnh Date: Tue, 8 Nov 2022 09:37:41 -0600 Subject: [PATCH] Fix missing cast of status and rule IDs to string (fix #19048) (#20122) --- app/serializers/rest/report_serializer.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/serializers/rest/report_serializer.rb b/app/serializers/rest/report_serializer.rb index de68dfc6d..f4e9af249 100644 --- a/app/serializers/rest/report_serializer.rb +++ b/app/serializers/rest/report_serializer.rb @@ -9,4 +9,12 @@ class REST::ReportSerializer < ActiveModel::Serializer def id object.id.to_s end + + def status_ids + object&.status_ids&.map(&:to_s) + end + + def rule_ids + object&.rule_ids&.map(&:to_s) + end end