diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.edit/public/js/policy-edit.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.edit/public/js/policy-edit.js index fd34ccc5a60..4f4fa7c88ed 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.edit/public/js/policy-edit.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.edit/public/js/policy-edit.js @@ -148,6 +148,7 @@ $("#policy-name-input").focus(function () { skipStep["policy-platform"] = function (policyPayloadObj) { policy["name"] = policyPayloadObj["policyName"]; policy["platform"] = policyPayloadObj["profile"]["deviceType"]; + policy["policyType"] = policyPayloadObj["policyType"]; var userRoleInput = $("#user-roles-input"); var ownershipInput = $("#ownership-input"); @@ -488,6 +489,7 @@ var updatePolicy = function (policy, state) { var payload = { "policyName": policy["policyName"], "description": policy["description"], + "policyType": policy["policyType"], "compliance": policy["selectedNonCompliantAction"], "ownershipType": null, "profile": {