← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9965: Minor fix.

 

------------------------------------------------------------
revno: 9965
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-03-04 21:14:36 +0700
message:
  Minor fix.
modified:
  dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java	2013-03-04 14:05:33 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java	2013-03-04 14:14:36 +0000
@@ -1992,8 +1992,8 @@
             criteria.setMaxResults( max );
         }
 
-        criteria.addOrder( Order.desc( "executionDate" ) );
-        criteria.addOrder( Order.desc( "dueDate" ) );
+        criteria.addOrder( Order.asc( "executionDate" ) );
+        criteria.addOrder( Order.asc( "dueDate" ) );
         criteria.addOrder( Order.asc( "programStage.minDaysFromStart" ) );
         
         return criteria;