From 07d87ae4f2a311aad6b029ba13e0f03a7a59a3be Mon Sep 17 00:00:00 2001 From: lasanthaDLPDS Date: Tue, 29 Oct 2019 21:06:29 +0530 Subject: [PATCH] Fix public app installing issue in APPM --- .../application/mgt/core/impl/ApplicationManagerImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationManagerImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationManagerImpl.java index f5b7882659d..8d25c6482ff 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationManagerImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationManagerImpl.java @@ -1872,6 +1872,7 @@ public class ApplicationManagerImpl implements ApplicationManager { this.applicationDAO.deleteAppCategories(categoryIds, applicationId, tenantId); appCategories.removeAll(removingAppCategories); } + applicationDTO.setAppCategories(appCategories); } List updatingAppTags = applicationUpdateWrapper.getTags(); @@ -1894,6 +1895,7 @@ public class ApplicationManagerImpl implements ApplicationManager { this.applicationDAO.deleteApplicationTags(removingTagIds, applicationId, tenantId); appTags.removeAll(removingTagList); } + applicationDTO.setTags(appTags); } if (!applicationDAO.updateApplication(applicationDTO, tenantId)){ ConnectionManagerUtil.rollbackDBTransaction();