Skip to content

Commit 7cfc3d0

Browse files
xisparamonski
andauthored
Fix Mine button from worksheets listing does not filter by current user (#2449)
* Fix Mine button from worksheets listing does not filter by user * Changelog --------- Co-authored-by: Ramon Bartl <[email protected]>
1 parent f3c998a commit 7cfc3d0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGES.rst

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changelog
44
2.5.0 (unreleased)
55
------------------
66

7+
- #2449 Fix Mine button from worksheets listing does not filter by current user
78
- #2448 Fix open filter is not visible to analysts in worksheets listing
89
- #2444 Fix reference widget search uses JSON encoded query
910
- #2443 Fix missing required marker in edit forms

src/bika/lims/browser/worksheet/views/folder.py

+4
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ def before_render(self):
221221
# Remove the add button
222222
self.context_actions = {}
223223

224+
# Update the "Mine" review status with current user id
225+
mine = self.get_review_state("mine")
226+
mine["contentFilter"]["getAnalyst"] = self.member.id
227+
224228
if self.show_only_mine():
225229
# Remove 'Mine' button and hide 'Analyst' column
226230
self.remove_review_state("mine")

0 commit comments

Comments
 (0)