From d460cf1370de7d7abbb6642a793609b796b0dbc4 Mon Sep 17 00:00:00 2001 From: kamidu Date: Fri, 21 Oct 2016 16:33:44 +0530 Subject: [PATCH] Fixing wifi payload issue in ios policies --- .../mdm.unit.device.operation-mod/public/js/operation-mod.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-mod/public/js/operation-mod.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-mod/public/js/operation-mod.js index d4eec72fa..1a935fa61 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-mod/public/js/operation-mod.js +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-mod/public/js/operation-mod.js @@ -439,6 +439,9 @@ var operationModule = function () { break; case iosOperationConstants["WIFI_OPERATION_CODE"]: operationType = operationTypeConstants["PROFILE"]; + if(operationData["wifiProxyPort"] == ""){ + operationData["wifiProxyPort"] = -1; + } payload = { "operation": { "SSID": operationData["wifiSSID"],