File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
Changes
2
2
+++++++
3
3
4
+ unreleased
5
+ ------
6
+ - fix `Server error saving [...] TB Diagnostics forms opened from
7
+ admin site` (#840)
8
+ - # TODO: bump to effect-form-validators 1.0.0 (once released)
9
+
10
+
4
11
1.0.0
5
12
------
6
13
- fix issues where addition of some unscheduled visits could result in
Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ class TbDiagnosticsFormValidator(
26
26
):
27
27
def clean (self ):
28
28
self .validate_study_day_with_datetime (
29
- subject_identifier = self .cleaned_data . get ( "subject_visit" ) .subject_identifier ,
29
+ subject_identifier = self .related_visit .subject_identifier ,
30
30
study_day = self .cleaned_data .get ("day_blood_taken" ),
31
31
compare_date = self .cleaned_data .get ("blood_taken_date" ),
32
32
study_day_field = "day_blood_taken" ,
33
33
)
34
34
35
35
self .validate_study_day_with_datetime (
36
- subject_identifier = self .cleaned_data . get ( "subject_visit" ) .subject_identifier ,
36
+ subject_identifier = self .related_visit .subject_identifier ,
37
37
study_day = self .cleaned_data .get ("day_biopsy_taken" ),
38
38
compare_date = self .cleaned_data .get ("biopsy_date" ),
39
39
study_day_field = "day_biopsy_taken" ,
You can’t perform that action at this time.
0 commit comments