From fe032a8899056f112269cfdfc56be11b988118f1 Mon Sep 17 00:00:00 2001 From: Lauren Leach Date: Fri, 11 Oct 2024 12:56:29 -0700 Subject: [PATCH] return nil if no obj vals for PickMultipleObjectValues custom field --- pkg/types/ticket/custom_fields.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/types/ticket/custom_fields.go b/pkg/types/ticket/custom_fields.go index 6a54a827..fd3d6b94 100644 --- a/pkg/types/ticket/custom_fields.go +++ b/pkg/types/ticket/custom_fields.go @@ -276,7 +276,7 @@ func GetCustomFieldValue(field *v2.TicketCustomField) (interface{}, error) { case *v2.TicketCustomField_PickMultipleObjectValues: objVals := v.PickMultipleObjectValues.GetValues() if len(objVals) == 0 { - return objVals, nil + return nil, nil } return objVals, nil @@ -337,7 +337,7 @@ func GetDefaultCustomFieldValue(field *v2.TicketCustomField) (interface{}, error case *v2.TicketCustomField_PickMultipleObjectValues: objVals := v.PickMultipleObjectValues.GetDefaultValues() if len(objVals) == 0 { - return objVals, nil + return nil, nil } return objVals, nil