File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Changelog
18
18
19
19
**Fixed **
20
20
21
+ - #475 Assigning Analyses to a WS raises AttributeError
21
22
- #466 UnicodeDecodeError if unicode characters are entered into the title field
22
23
- #453 Sample points do not show the referenced sample types in view
23
24
- #470 Sort order of Analyses in WS print view wrong
Original file line number Diff line number Diff line change @@ -992,7 +992,7 @@ def getAnalyst(self):
992
992
# Is assigned to a worksheet?
993
993
wss = self .getBackReferences ('WorksheetAnalysis' )
994
994
if len (wss ) > 0 :
995
- analyst = wss [0 ].getAnalyst (). getUsername ()
995
+ analyst = wss [0 ].getAnalyst ()
996
996
field .set (self , analyst )
997
997
return analyst if analyst else ''
998
998
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def test_LIMS2001(self):
72
72
lab_contact = [o for o in lab_contacts if o .getUsername () == 'analyst1' ]
73
73
self .assertEquals (len (lab_contact ), 1 )
74
74
lab_contact = lab_contact [0 ]
75
- ws .setAnalyst (lab_contact )
75
+ ws .setAnalyst (lab_contact . getUsername () )
76
76
ws .setResultsLayout (self .portal .bika_setup .getWorksheetLayout ())
77
77
# Add analyses into the worksheet
78
78
self .request ['context_uid' ] = ws .UID ()
You can’t perform that action at this time.
0 commit comments