← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3898: fixed minor bug in displayAddTableForm, made select show correctly selected level (default 1)

 

------------------------------------------------------------
revno: 3898
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-06-14 10:54:57 +0200
message:
  fixed minor bug in displayAddTableForm, made select show correctly selected level (default 1)
modified:
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addTableForm.vm


--
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-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addTableForm.vm'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addTableForm.vm	2011-06-11 18:49:06 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addTableForm.vm	2011-06-14 08:54:57 +0000
@@ -291,7 +291,11 @@
 			<select id="organisationUnitLevel" name="organisationUnitLevel" style="min-width:640px" onchange="getOrganisationUnits()">
 				<option value="$ALL">[ $i18n.getString( "select_organisationunit_level_all" ) ]</option>
 				#foreach ( $level in $levels )
+					#if( $velocityCount == 1)
+					<option value="$level.level" selected="selected">$encoder.htmlEncode( $level.name )</option>
+					#else
 					<option value="$level.level">$encoder.htmlEncode( $level.name )</option>
+					#end
 				#end
 			</select>
 		</td>