Skip to content

Commit

Permalink
fix(SPT-32187): added error message for record.search
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiKumar Kondapalli authored and SaiKumar Kondapalli committed Sep 24, 2024
1 parent 4d8a713 commit 6e0e048
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion swimlane/core/fields/base/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,14 @@ def get_report(self, value):
"""Return provided field Python value formatted for use in report filter"""
if self.multiselect:
value = value or []
if not isinstance(value, list):
raise TypeError("Value Expected a list, but got something else.")
children = []

for child in value:
children.append(self.cast_to_report(child))
id = self.cast_to_report(child)
if id:
children.append(id)

return children

Expand Down

0 comments on commit 6e0e048

Please sign in to comment.