Skip to content

Commit

Permalink
Fix traceback when listing analyses in manage_analyses view
Browse files Browse the repository at this point in the history
  • Loading branch information
xispa committed Jul 24, 2024
1 parent 9404bb6 commit 207bc66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/senaite/referral/adapters/listing/analyses.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ def referring_services(self):
referring laboratory, if any
"""
if self._referring_services is None:
self._referring_services = []
inbound_sample = self.context.getInboundSample()
self._referring_services = inbound_sample.getRawServices()
if inbound_sample:
self._referring_services = inbound_sample.getRawServices()
return self._referring_services

@check_installed(None)
Expand Down

0 comments on commit 207bc66

Please sign in to comment.