From b54bf3000f0baa81f444a51f0b39ae2b7e3bd616 Mon Sep 17 00:00:00 2001 From: Ace Date: Wed, 3 May 2017 07:13:06 +0530 Subject: [PATCH] Adding fix for status 500 in device listing page --- .../devicemgt/app/pages/cdmf.page.devices/devices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/devices.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/devices.js index 56a9c452fa..4956332e2b 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/devices.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/devices.js @@ -80,7 +80,7 @@ function onRequest(context) { } var mdmProps = require("/app/modules/conf-reader/main.js")["conf"]; - var cUser = userModule.getUser(); + var cUser = userModule.getCarbonUser(); var analiticsServer = mdmProps["dashboardServerURL"]; var analiticsURL = analiticsServer + "/portal/t/" + cUser.userDomain + "/dashboards/android-iot/battery?owner=" + cUser.username + "&deviceId="; viewModel.analiticsURL = analiticsURL;