Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Fix traceback when calling getBatches from Patient
Browse files Browse the repository at this point in the history
  • Loading branch information
xispa committed Feb 18, 2020
1 parent 1e3010d commit 94a892f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bika/health/content/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ def getBatches(self, full_objects=False):
query = dict(portal_type="Batch", getPatientUID=api.get_uid(self))
batches = api.search(query, BIKA_CATALOG)
if full_objects:
batches = map(api.get_object_by_uid, batches)
return map(api.get_object, batches)
return batches

def SearchableText(self):
Expand Down

0 comments on commit 94a892f

Please sign in to comment.