Skip to content

Commit dfe1032

Browse files
authored
Merge pull request #2483 from TechnologyEnhancedLearning/Develop/fix/TD-3611-Prompts-filter-not-working
TD-3611- prompts filter not working
2 parents 37f4db3 + 009ca1b commit dfe1032

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DigitalLearningSolutions.Data/DataServices/CourseDataService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,13 +1097,13 @@ AND ap.DefaultContentTypeID <> 4
10971097
AND ((@hasCompleted IS NULL) OR (@hasCompleted = 1 AND pr.Completed IS NOT NULL) OR (@hasCompleted = 0 AND pr.Completed IS NULL))
10981098
10991099
AND ((@answer1 IS NULL) OR ((@answer1 = 'No option selected' OR @answer1 = 'FREETEXTBLANKVALUE') AND (pr.Answer1 IS NULL OR LTRIM(RTRIM(pr.Answer1)) = ''))
1100-
OR ((@answer1 = 'FREETEXTNOTBLANKVALUE' OR (@answer1 != 'No option selected' AND @answer1 != 'FREETEXTBLANKVALUE')) AND (pr.Answer1 IS NOT NULL AND pr.Answer1 = @answer1)))
1100+
OR ((@answer1 = 'FREETEXTNOTBLANKVALUE' AND pr.Answer1 IS NOT NULL AND LTRIM(RTRIM(pr.Answer1)) != '') OR (pr.Answer1 IS NOT NULL AND pr.Answer1 = @answer1)))
11011101
11021102
AND ((@answer2 IS NULL) OR ((@answer2 = 'No option selected' OR @answer2 = 'FREETEXTBLANKVALUE') AND (pr.Answer2 IS NULL OR LTRIM(RTRIM(pr.Answer2)) = ''))
1103-
OR ((@answer2 = 'FREETEXTNOTBLANKVALUE' OR (@answer2 != 'No option selected' AND @answer2 != 'FREETEXTBLANKVALUE')) AND (pr.Answer2 IS NOT NULL AND pr.Answer2 = @answer2)))
1103+
OR ((@answer2 = 'FREETEXTNOTBLANKVALUE' AND pr.Answer2 IS NOT NULL AND LTRIM(RTRIM(pr.Answer2)) != '') OR (pr.Answer2 IS NOT NULL AND pr.Answer2 = @answer2)))
11041104
11051105
AND ((@answer3 IS NULL) OR ((@answer3 = 'No option selected' OR @answer3 = 'FREETEXTBLANKVALUE') AND (pr.Answer3 IS NULL OR LTRIM(RTRIM(pr.Answer3)) = ''))
1106-
OR ((@answer3 = 'FREETEXTNOTBLANKVALUE' OR (@answer3 != 'No option selected' AND @answer3 != 'FREETEXTBLANKVALUE')) AND (pr.Answer3 IS NOT NULL AND pr.Answer3 = @answer3)))
1106+
OR ((@answer3 = 'FREETEXTNOTBLANKVALUE' AND pr.Answer3 IS NOT NULL AND LTRIM(RTRIM(pr.Answer3)) != '') OR (pr.Answer3 IS NOT NULL AND pr.Answer3 = @answer3)))
11071107
11081108
AND COALESCE(ucd.Email, u.PrimaryEmail) LIKE '%_@_%.__%'";
11091109

0 commit comments

Comments
 (0)