=== modified file 'dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java' --- dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java 2013-03-04 10:58:36 +0000 +++ dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java 2013-03-04 11:16:07 +0000 @@ -280,7 +280,7 @@ } else if ( active == null ) { - if ( limit != null ) + if ( limitValue != null ) { allOrganisationUnits = new ArrayList( organisationUnitService. getOrganisationUnitsBetweenByLastUpdated( lastUpdated, offset, limitValue ) ); @@ -303,7 +303,7 @@ } else { - if ( limit != null ) + if ( limitValue != null ) { allOrganisationUnits = new ArrayList( organisationUnitService. getOrganisationUnitsBetweenByStatusLastUpdated( active, lastUpdated, offset, limitValue ) );