( getCriteria(
Restrictions.eq( "programInstance", programInstance ), Restrictions.eq( "programStage", programStage ) )
- .list() );
+ .addOrder( Order.asc( "id" ) ).list() );
return (list == null) ? null : list.get( list.size() - 1 );
}
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm 2012-01-11 05:31:53 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm 2012-01-11 06:17:35 +0000
@@ -40,7 +40,9 @@
$customDataEntryFormCode
#else
@@ -119,11 +121,11 @@
#end
+
+ ##providedByAnotherFacility
+ #set( $id = $programStageDataElement.programStage.id + '_' + $programStageDataElement.dataElement.id + '_facility' )
#if($programStageInstance.programInstance.program.anonymous == 'false')
-
- ##providedByAnotherFacility
- #set( $id = $programStageDataElement.programStage.id + '_' + $programStageDataElement.dataElement.id + '_facility' )
#if ( $patientDataValue.value )
#if( !$patientDataValue.providedByAnotherFacility )
$patientDataValue.organisationUnit.name
@@ -137,7 +139,9 @@
#end
|
- #end
+ #else
+
+ #end
#set( $tabIndex = $tabIndex + 1 )
#end