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 #163 from senaite/before-render-patients
Browse files Browse the repository at this point in the history
Cannot override Patients listing behavior with subscriber adapters
  • Loading branch information
ramonski authored Jan 13, 2020
2 parents c6cba89 + 38be466 commit 24ba4ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Changelog

**Changed**

- #163 Cannot override behavior of Patients folder when using `before_render`
- #157 Changed Base Catalog Tool


Expand Down
4 changes: 2 additions & 2 deletions bika/health/browser/patients/folder_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ def __init__(self, context, request):
},
]

def before_render(self):
def update(self):
"""Before template render hook
"""
super(PatientsView, self).before_render()
super(PatientsView, self).update()

if IPatients.providedBy(self.context):
self.request.set("disable_border", 1)
Expand Down

0 comments on commit 24ba4ea

Please sign in to comment.