From fe3088402cd0f11680c57e2df2c98c5cddeb8fba Mon Sep 17 00:00:00 2001 From: prathabanKavin Date: Thu, 1 Dec 2022 16:47:36 +0530 Subject: [PATCH] Add fix to load default app categories in tenants --- .../core/dao/impl/application/GenericApplicationDAOImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/dao/impl/application/GenericApplicationDAOImpl.java b/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/dao/impl/application/GenericApplicationDAOImpl.java index 5b07d0a049..5a6a99d962 100644 --- a/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/dao/impl/application/GenericApplicationDAOImpl.java +++ b/components/application-mgt/io.entgra.application.mgt.core/src/main/java/io/entgra/application/mgt/core/dao/impl/application/GenericApplicationDAOImpl.java @@ -906,7 +906,8 @@ public class GenericApplicationDAOImpl extends AbstractDAOImpl implements Applic + "AP_APP_CATEGORY.ID AS ID, " + "AP_APP_CATEGORY.CATEGORY AS CATEGORY " + "FROM AP_APP_CATEGORY " - + "WHERE TENANT_ID = ?"; + + "WHERE TENANT_ID = ?" + + "OR TENANT_ID = -1234"; try { List categories = new ArrayList<>(); Connection conn = this.getDBConnection();