Skip to content

Commit

Permalink
Fix referenceresults widget view mode (senaite#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonski committed Sep 11, 2022
1 parent 430a247 commit 97ce14b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bika/lims/browser/widgets/referenceresultswidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ def ReferenceResults(self, field, allow_edit=False):
# Call listing hooks
table.update()
table.before_render()

if allow_edit is False:
# This is a hack to notify read-only mode to the view
table.allow_edit = allow_edit
return table.contents_table_view()

return table.ajax_contents_table()


Expand Down

0 comments on commit 97ce14b

Please sign in to comment.