Skip to content

Commit 2c3152e

Browse files
ramonskixispa
andauthored
Include sample ID in form ID for lab, field and qc analyses listings (senaite#2082)
* Include sample ID in listing table form ID * Use % substitutions * Changelog updated Co-authored-by: Jordi Puiggené <[email protected]>
1 parent f3b9200 commit 2c3152e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES.rst

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Changelog
55
2.3.0 (unreleased)
66
------------------
77

8+
- #2082 Include sample ID in form ID for lab, field and qc analyses listings
89
- #2075 Allow to override logo and styles in new SENAITE Setup
910
- #2076 Fix style of selected language in dropdown
1011
- #2074 Allow to disable global Auditlogging

src/bika/lims/browser/analysisrequest/tables.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, context, request):
3535
"getAncestorsUIDs": [api.get_uid(context)]
3636
})
3737

38-
self.form_id = "lab_analyses"
38+
self.form_id = "%s_lab_analyses" % api.get_id(context)
3939
self.allow_edit = True
4040
self.show_workflow_action_buttons = True
4141
self.show_select_column = True
@@ -54,7 +54,7 @@ def __init__(self, context, request):
5454
"getAncestorsUIDs": [api.get_uid(context)]
5555
})
5656

57-
self.form_id = "field_analyses"
57+
self.form_id = "%s_field_analyses" % api.get_id(context)
5858
self.allow_edit = True
5959
self.show_workflow_action_buttons = True
6060
self.show_select_column = True
@@ -68,7 +68,7 @@ class QCAnalysesTable(QCAnalysesView):
6868
def __init__(self, context, request):
6969
super(QCAnalysesTable, self).__init__(context, request)
7070

71-
self.form_id = "qc_analyses"
71+
self.form_id = "%s_qc_analyses" % api.get_id(context)
7272
self.allow_edit = False
7373
self.show_select_column = False
7474
self.show_workflow_action_buttons = False

0 commit comments

Comments
 (0)