dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23544
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11454: Made loading of sections for field greying more robust
------------------------------------------------------------
revno: 11454
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2013-07-20 13:17:39 +0200
message:
Made loading of sections for field greying more robust
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/section/GreySectionAction.java
--
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-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/section/GreySectionAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/section/GreySectionAction.java 2011-12-26 10:07:59 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/section/GreySectionAction.java 2013-07-20 11:17:39 +0000
@@ -193,7 +193,7 @@
{
int categoryOptionSize = cat.getCategoryOptions().size();
- if ( catColSpan > 0 && categoryOptionSize > 0 )
+ if ( categoryOptionSize > 0 && catColSpan >= categoryOptionSize )
{
catColSpan = catColSpan / categoryOptionSize;