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

Commit

Permalink
Merge pull request #175 from senaite/patient-get-batches
Browse files Browse the repository at this point in the history
Fix traceback when calling getBatches from Patient
  • Loading branch information
ramonski authored Feb 18, 2020
2 parents 6c6dd8c + 94a892f commit 7082f1e
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 7082f1e

Please sign in to comment.