Skip to content

Commit 8b7e48c

Browse files
xisparamonski
andauthored
Categories don't show up automatically on Analysis Service creation (#1828)
Co-authored-by: Ramon Bartl <rb@ridingbytes.com>
1 parent bdd0798 commit 8b7e48c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changelog
44
2.0.0 (unreleased)
55
------------------
66

7+
- #1828 Fix categories don't show up automatically on Analysis Service creation
78
- #1823 Fix inconsistent behavior of Add sample form confirmation actions
89
- #1824 Support html messages on Add sample custom confirmation dialog
910
- #1826 Fix TypeError when creating Dynamic Analysis Specifications

src/bika/lims/content/abstractbaseanalysis.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,13 @@
390390
checkbox_bound=0,
391391
label=_("Analysis Category"),
392392
description=_("The category the analysis service belongs to"),
393-
catalog_name='bika_setup_catalog',
394-
base_query={'is_active': True},
393+
showOn=True,
394+
catalog_name=SETUP_CATALOG,
395+
base_query={
396+
'is_active': True,
397+
'sort_on': 'sortable_title',
398+
'sort_order': 'ascending',
399+
},
395400
)
396401
)
397402

0 commit comments

Comments
 (0)