From e4c4837296f48784fda94fb6b96ca8635172525e Mon Sep 17 00:00:00 2001 From: akila94 Date: Wed, 27 May 2020 19:27:26 +0530 Subject: [PATCH] Change code to call post listeners instead of pre listeners --- .../application/mgt/ApplicationManagementServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java b/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java index ee1959480394..01034e4150ec 100644 --- a/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java +++ b/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java @@ -186,7 +186,7 @@ public ServiceProvider createApplicationWithTemplate(ServiceProvider serviceProv } for (ApplicationMgtListener listener : listeners) { - if (listener.isEnable() && !listener.doPreCreateApplication(serviceProvider, tenantDomain, username)) { + if (listener.isEnable() && !listener.doPostCreateApplication(serviceProvider, tenantDomain, username)) { log.error("Post create application operation of listener:" + getName(listener) + " failed for " + "application: " + serviceProvider.getApplicationName() + " of tenantDomain: " + tenantDomain); break;