dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23154
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11259: Made loading of forms with categories more robust
------------------------------------------------------------
revno: 11259
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-06-25 14:38:01 +0200
message:
Made loading of forms with categories more robust
modified:
dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.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-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java 2013-06-25 09:01:34 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java 2013-06-25 12:38:01 +0000
@@ -282,7 +282,7 @@
{
int categoryOptionSize = cat.getCategoryOptions().size();
- if ( catColSpan > 0 && categoryOptionSize > 0 )
+ if ( categoryOptionSize > 0 && catColSpan >= categoryOptionSize )
{
catColSpan = catColSpan / categoryOptionSize;
int total = optionCombos.size() / (catColSpan * categoryOptionSize);