mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix issue with reconfiguring policy
The cause of the issue is not passing the newly introduced parameter 'policyType' in the policy edit payload. This parameter is marked @NotNull. Hence throwing an error. This fix sets the policyType parameter from the existing payload (Doesn't allow to edit as there is no UI interface to edit this parameter ATM Fixes: entgra/product-iots#175
This commit is contained in:
parent
d98564c39b
commit
03c550d11b
@ -148,6 +148,7 @@ $("#policy-name-input").focus(function () {
|
|||||||
skipStep["policy-platform"] = function (policyPayloadObj) {
|
skipStep["policy-platform"] = function (policyPayloadObj) {
|
||||||
policy["name"] = policyPayloadObj["policyName"];
|
policy["name"] = policyPayloadObj["policyName"];
|
||||||
policy["platform"] = policyPayloadObj["profile"]["deviceType"];
|
policy["platform"] = policyPayloadObj["profile"]["deviceType"];
|
||||||
|
policy["policyType"] = policyPayloadObj["policyType"];
|
||||||
|
|
||||||
var userRoleInput = $("#user-roles-input");
|
var userRoleInput = $("#user-roles-input");
|
||||||
var ownershipInput = $("#ownership-input");
|
var ownershipInput = $("#ownership-input");
|
||||||
@ -488,6 +489,7 @@ var updatePolicy = function (policy, state) {
|
|||||||
var payload = {
|
var payload = {
|
||||||
"policyName": policy["policyName"],
|
"policyName": policy["policyName"],
|
||||||
"description": policy["description"],
|
"description": policy["description"],
|
||||||
|
"policyType": policy["policyType"],
|
||||||
"compliance": policy["selectedNonCompliantAction"],
|
"compliance": policy["selectedNonCompliantAction"],
|
||||||
"ownershipType": null,
|
"ownershipType": null,
|
||||||
"profile": {
|
"profile": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user