From 6a3107f2898d8a4317b7eb92dbae9a4793675ba1 Mon Sep 17 00:00:00 2001 From: aestene Date: Tue, 14 Nov 2023 12:47:44 +0100 Subject: [PATCH] Compare to lower case values --- backend/api/Services/RobotService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/api/Services/RobotService.cs b/backend/api/Services/RobotService.cs index f2112d4fb..8ae3474fc 100644 --- a/backend/api/Services/RobotService.cs +++ b/backend/api/Services/RobotService.cs @@ -138,7 +138,9 @@ public async Task> ReadLocalizedRobotsForInstallation(string instal { return await GetRobotsWithSubModels() .Where(robot => - robot.CurrentInstallation.Equals(installationCode) +#pragma warning disable CA1304 + robot.CurrentInstallation.ToLower().Equals(installationCode.ToLower()) +#pragma warning restore CA1304 && robot.CurrentArea != null) .ToListAsync(); }