File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -143,15 +143,16 @@ function generateDocumentSQL(string $tablename) : string
143
143
JOIN session s ON(s.ID=f.SessionID)
144
144
JOIN candidate c ON(c.ID=s.CandidateID)
145
145
LEFT JOIN flag ddef ON(ddef.CommentID=CONCAT('DDE_', f.CommentID))
146
- LEFT JOIN test_names tn ON(f.TestID = tn.ID) " ;
146
+ LEFT JOIN test_names tn ON(f.TestID = tn.ID)
147
+ LEFT JOIN instrument_data d ON (d.ID = f.DataID) " ;
147
148
148
149
$ where = "WHERE f.CommentID NOT LIKE 'DDE%'
149
150
AND tn.Test_name=:inst AND s.Active='Y' AND c.Active='Y' " ;
150
151
151
152
if ($ tablename === "" ) {
152
153
// the data is in the flag table, add the data column to the query
153
154
// and do not join the table.
154
- $ extraSelect = ", f .Data " ;
155
+ $ extraSelect = ", d .Data " ;
155
156
156
157
return $ select . $ extraSelect . $ from . $ where ;
157
158
}
You can’t perform that action at this time.
0 commit comments