Changing the if to a while loop, fixing the activity id issue

revert-70aa11f8
geethkokila 9 years ago
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…
Cancel
Save