dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21163
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9942: Minor
------------------------------------------------------------
revno: 9942
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-03-01 11:10:21 +0100
message:
Minor
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnitGroup.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupForm.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-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnitGroup.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnitGroup.java 2013-03-01 08:36:06 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnitGroup.java 2013-03-01 10:10:21 +0000
@@ -166,6 +166,11 @@
addDataSet( ds );
}
}
+
+ public boolean hasSymbol()
+ {
+ return symbol != null && !symbol.trim().isEmpty();
+ }
// -------------------------------------------------------------------------
// hashCode and equals
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupForm.vm 2013-03-01 05:14:56 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupForm.vm 2013-03-01 10:10:21 +0000
@@ -59,7 +59,7 @@
<td style="height:35px"><label for="symbol">$i18n.getString( "symbol" )</td>
<td style="width:130px"><a href="javascript:openSymbolDialog()">$i18n.getString( "select_symbol" )</a></td>
<td><img id="symbolImg" style="padding-left:20px;"
- #if( $organisationUnitGroup.symbol )
+ #if( $organisationUnitGroup.hasSymbol() )
src="../images/orgunitgroup/${organisationUnitGroup.symbol}"
#else
src="../images/transparent.png"