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

Commit

Permalink
Prevent Traceback in patients listing when dob is not set (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
xispa authored Apr 9, 2020
1 parent 55980f4 commit 34b636d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bika/health/browser/patients/folder_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,8 @@ def folderitems(self, full_objects=False, classic=False):
def folderitem(self, obj, item, index):
# Date of Birth
dob = obj.getBirthDate
item['getBirthDate'] = self.ulocalized_time(dob)

# Patient's current age
item["age"] = get_age_ymd(dob)
item['getBirthDate'] = dob and self.ulocalized_time(dob) or ""
item["age"] = dob and get_age_ymd(dob) or ""

# make the columns patient title, patient ID and client patient ID
# redirect to the Analysis Requests of the patient
Expand Down

0 comments on commit 34b636d

Please sign in to comment.