From 9f592f8a334d3db134949a67875a211af051b3fb Mon Sep 17 00:00:00 2001 From: manoj Date: Fri, 29 May 2015 19:06:34 +0530 Subject: [PATCH] fix operation id field issue --- .../core/operation/mgt/dao/impl/CommandOperationDAOImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/CommandOperationDAOImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/CommandOperationDAOImpl.java index 8b756f131e..3b73a8680f 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/CommandOperationDAOImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/CommandOperationDAOImpl.java @@ -156,7 +156,7 @@ public class CommandOperationDAOImpl extends OperationDAOImpl { while (rs.next()) { - operationId = rs.getInt("ID"); + operationId = rs.getInt("OPERATION_ID"); operation = super.getOperation(operationId); operation.setEnabled(rs.getInt("ENABLED") == 0?false:true); operationList.add(operation);