=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/useraccount/account.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/useraccount/account.vm 2014-02-14 14:09:37 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/useraccount/account.vm 2014-09-24 11:36:49 +0000 @@ -28,7 +28,7 @@
@@ -37,7 +37,7 @@ | |||
@@ -48,14 +48,13 @@ | |||
+ #if( $usernameChoice == "false" ) + | + | + #else ++ #end | - - -#if( $usernameChoice == "false" ) - -#end - - |
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/ouwt/action/AddSelectedOrganisationUnitAction.java' --- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/ouwt/action/AddSelectedOrganisationUnitAction.java 2014-09-17 10:16:52 +0000 +++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/ouwt/action/AddSelectedOrganisationUnitAction.java 2014-09-24 11:36:49 +0000 @@ -88,16 +88,19 @@ { selectedUnits = selectionManager.getSelectedOrganisationUnits(); - for ( String currentId : id ) + if ( id != null ) { - OrganisationUnit unit = organisationUnitService.getOrganisationUnit( currentId ); - - if ( unit == null ) + for ( String currentId : id ) { - throw new RuntimeException( "OrganisationUnit with id " + id + " doesn't exist" ); + OrganisationUnit unit = organisationUnitService.getOrganisationUnit( currentId ); + + if ( unit == null ) + { + throw new RuntimeException( "OrganisationUnit with id " + id + " doesn't exist" ); + } + + selectedUnits.add( unit ); } - - selectedUnits.add( unit ); } selectionManager.setSelectedOrganisationUnits( selectedUnits ); |