From 730d12bb8fb00032c4d50459685a510d9563de62 Mon Sep 17 00:00:00 2001 From: Maxime NGOE Date: Wed, 15 Nov 2023 21:33:35 +0100 Subject: [PATCH] Fix OP-1602 Impossible to display location for an officer if this officier has a location. The SQL query was not correct on this case (missed space and has 2 brackets) --- .../java/org/openimis/imispolicies/ClientAndroidInterface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/openimis/imispolicies/ClientAndroidInterface.java b/app/src/main/java/org/openimis/imispolicies/ClientAndroidInterface.java index 0472357d..ebb1b13c 100644 --- a/app/src/main/java/org/openimis/imispolicies/ClientAndroidInterface.java +++ b/app/src/main/java/org/openimis/imispolicies/ClientAndroidInterface.java @@ -372,7 +372,7 @@ public String getRegions() { @Language("SQL") String Query = "SELECT LocationId, LocationName FROM tblLocations WHERE LocationId = (SELECT L.ParentLocationId LocationId FROM tblLocations L"; if (officerLocationId != null) { - Query += "WHERE L.LocationId = " + officerLocationId + "')"; + Query += " WHERE L.LocationId = " + officerLocationId; } Query += ")"; return sqlHandler.getResult(Query, null).toString();