From 6b4f3d03735f3013c5ebcc2e48fa742bf0170f5b Mon Sep 17 00:00:00 2001 From: Sameera Wickramasekara Date: Mon, 14 Aug 2017 17:41:41 +0530 Subject: [PATCH] Trim deviceId to remove extra spaces --- .../analytics-view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/distribution/src/core/samples/sampledevice/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.sampledevice.analytics-view/analytics-view.js b/modules/distribution/src/core/samples/sampledevice/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.sampledevice.analytics-view/analytics-view.js index d9573aaa..bc55d723 100644 --- a/modules/distribution/src/core/samples/sampledevice/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.sampledevice.analytics-view/analytics-view.js +++ b/modules/distribution/src/core/samples/sampledevice/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.sampledevice.analytics-view/analytics-view.js @@ -21,7 +21,7 @@ function onRequest(context) { var devices = context.unit.params.devices; var deviceType = context.uriParams.deviceType; - var deviceId = request.getParameter("deviceId"); + var deviceId = request.getParameter("deviceId").trim(); if (devices) { return { @@ -41,4 +41,4 @@ function onRequest(context) { exit(); } } -} \ No newline at end of file +}