mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Changing the if to a while loop, fixing the activity id issue
This commit is contained in:
parent
67c9ee0e70
commit
cc6883d955
@ -282,7 +282,7 @@ public class GenericOperationDAOImpl implements OperationDAO {
|
|||||||
int enrolmentId = 0;
|
int enrolmentId = 0;
|
||||||
ActivityStatus activityStatus = null;
|
ActivityStatus activityStatus = null;
|
||||||
|
|
||||||
if (rs.next()) {
|
while (rs.next()) {
|
||||||
activity = new Activity();
|
activity = new Activity();
|
||||||
if (enrolmentId == 0) {
|
if (enrolmentId == 0) {
|
||||||
activity.setType(Activity.Type.valueOf(rs.getString("OPERATION_TYPE")));
|
activity.setType(Activity.Type.valueOf(rs.getString("OPERATION_TYPE")));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user