From 707a8c97094b82895010a747de1fe62487b40eba Mon Sep 17 00:00:00 2001 From: manoj Date: Sat, 30 May 2015 02:22:03 +0530 Subject: [PATCH] Add payload to policy operation --- .../wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java index 907db0b2c1..c6da23346d 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java @@ -117,9 +117,10 @@ public class PolicyManagerServiceImpl implements PolicyManagerService { profileOperationList.add(profileOperation); } policyOperation.setProfileOperations(profileOperationList); + policyOperation.setPayLoad(policyOperation.getProfileOperations()); PolicyManagementDataHolder.getInstance().getDeviceManagementService(). addOperation(policyOperation, deviceIdentifiers); - policyOperation.setPayLoad(policyOperation.getProfileOperations()); + } else { return null; }