- WSO2 IoT Server{{#unless isCloud}} 3.1.0{{/unless}} - WSO2 IoT Server{{#unless isCloud}} 3.1.0{{/unless}} | © , + WSO2 IoT Server{{#unless isCloud}} 3.2.0{{/unless}} + WSO2 IoT Server{{#unless isCloud}} 3.2.0{{/unless}} | © , Inc. All Rights Reserved.
{{/zone}} \ No newline at end of file diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.platform.configuration/configuration.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.platform.configuration/configuration.js index 759175edff..361579554f 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.platform.configuration/configuration.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.platform.configuration/configuration.js @@ -49,10 +49,10 @@ function onRequest(context) { } } } - var geoServicesEnabled = devicemgtProps.serverConfig.geoLocationConfiguration.isEnabled; + var geoServicesEnabled = devicemgtProps.serverConfig.geoLocationConfiguration.enabled; return { "geoServicesEnabled": geoServicesEnabled, "deviceTypes": deviceTypesArray, "isAuthorized": isAuthorized }; -} \ No newline at end of file +} diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.view/public/js/view.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.view/public/js/view.js index 9a5eef0ee3..cf9a711f42 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.view/public/js/view.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.view/public/js/view.js @@ -41,12 +41,17 @@ var displayPolicy = function (policyPayloadObj) { $("#policy-status").html(policyStatus); - if (policyPayloadObj.users.length > 0) { + if (!policyPayloadObj.users) { + $("#policy-users").text("NONE"); + } else if (policyPayloadObj.users.length > 0) { $("#policy-users").text(policyPayloadObj.users.toString().split(",").join(", ")); } else { $("#users-row").addClass("hidden"); } - if (policyPayloadObj.deviceGroups.length > 0) { + + if (!policyPayloadObj.deviceGroups) { + $("#policy-groups").text("NONE"); + } else if (policyPayloadObj.deviceGroups.length > 0) { var deviceGroups = policyPayloadObj.deviceGroups; var assignedGroups = []; for (var index in deviceGroups) { @@ -55,14 +60,12 @@ var displayPolicy = function (policyPayloadObj) { } } $("#policy-groups").text(assignedGroups.toString().split(",").join(", ")); - } else { - $("#policy-groups").text("NONE"); } - if (policyPayloadObj.roles.length > 0) { - $("#policy-roles").text(policyPayloadObj.roles.toString().split(",").join(", ")); - } else { + if (!policyPayloadObj.roles) { $("#roles-row").addClass("hidden"); + } else if (policyPayloadObj.roles.length > 0) { + $("#policy-roles").text(policyPayloadObj.roles.toString().split(",").join(", ")); } var policyId = policyPayloadObj["id"]; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/app/units/uuf.unit.footer/footer.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/app/units/uuf.unit.footer/footer.hbs index bf499421ff..a5127d5622 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/app/units/uuf.unit.footer/footer.hbs +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/app/units/uuf.unit.footer/footer.hbs @@ -17,8 +17,8 @@ }} {{#zone "footer"}}- WSO2 IoT Server 3.1.0 - WSO2 IoT Server 3.1.0 | © , + WSO2 IoT Server 3.2.0 + WSO2 IoT Server 3.2.0 | © , Inc. All Rights Reserved.
{{/zone}} \ No newline at end of file diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.url.printer/pom.xml b/components/device-mgt/org.wso2.carbon.device.mgt.url.printer/pom.xml index e09de1c896..763bff0ace 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.url.printer/pom.xml +++ b/components/device-mgt/org.wso2.carbon.device.mgt.url.printer/pom.xml @@ -23,7 +23,7 @@