Skip to content

Commit b819996

Browse files
ramonskixispa
authored andcommitted
Fix the filter query in the Add Sample Form (senaite#158)
* Fix the filter query in the Add Sample Form * Changelog updated
1 parent 5c461be commit b819996

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.rst

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Changelog
1717

1818
**Fixed**
1919

20+
- #158 Fix the filter query in the Add Sample Form
21+
2022

2123
**Security**
2224

bika/health/adapters/addsample.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ def get_object_info(self):
138138
filter_queries = {
139139
# Allow to choose Patients from same Client only
140140
"Patient": {
141-
"getPrimaryReferrerUID": [uid, ""],
141+
"getPrimaryReferrerUID": [uid, None],
142142
},
143143
"ClientPatientID": {
144-
"getPrimaryReferrerUID": [uid, ""],
144+
"getPrimaryReferrerUID": [uid, None],
145145
}
146146
}
147147
object_info["filter_queries"] = filter_queries

0 commit comments

Comments
 (0)