We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a70b082 commit 29739a5Copy full SHA for 29739a5
bika/lims/content/sample.py
@@ -469,9 +469,10 @@
469
visible=False,
470
),
471
472
- ComputedField('SampleTypeUID',
473
- expression = 'context.getSampleType().UID()',
474
- widget = ComputedWidget(
+ ComputedField(
+ 'SampleTypeUID',
+ expression='context.getSampleType() and context.getSampleType().UID() or None',
475
+ widget=ComputedWidget(
476
477
478
docs/CHANGELOG.txt
@@ -1,7 +1,7 @@
1
3.2.1b3 (unreleased)
2
--------------------
3
4
-- no changes yet
+- Issue-2052: Computed Sample Field "SampleTypeUID" does not check if a SampleType is set
5
6
7
3.2.1b2 (2017-05-27)
0 commit comments