dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #05775
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1820: Fixed bug in report table
------------------------------------------------------------
revno: 1820
committer: Lars <larshelg@larshelg-laptop>
branch nick: trunk
timestamp: Wed 2010-05-05 19:48:34 +0200
message:
Fixed bug in report table
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/Period.java
dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.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-api/src/main/java/org/hisp/dhis/period/Period.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/Period.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/Period.java 2010-05-05 17:48:34 +0000
@@ -74,13 +74,22 @@
{
}
+ public Period( Period period )
+ {
+ this.id = period.getId();
+ this.periodType = period.getPeriodType();
+ this.startDate = period.getStartDate();
+ this.endDate = period.getEndDate();
+ this.name = period.getName();
+ }
+
protected Period( PeriodType periodType, Date startDate, Date endDate )
{
this.periodType = periodType;
this.startDate = startDate;
this.endDate = endDate;
}
-
+
// -------------------------------------------------------------------------
// Dimension
// -------------------------------------------------------------------------
=== modified file 'dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.java 2010-05-05 17:48:34 +0000
@@ -751,6 +751,6 @@
period = persistedPeriod;
}
- return period;
+ return new Period( period );
}
}