dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21641
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10293: Added financial period type column to analytics.
------------------------------------------------------------
revno: 10293
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-03-18 17:39:07 +0100
message:
Added financial period type column to analytics.
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java
dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/HibernateGenericStore.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-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java 2013-03-15 11:28:58 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java 2013-03-18 16:39:07 +0000
@@ -206,7 +206,10 @@
columns.add( col );
}
- for ( PeriodType periodType : PeriodType.getAvailablePeriodTypes().subList( 0, 7 ) )
+ List<PeriodType> periodTypes = PeriodType.getAvailablePeriodTypes().subList( 0, 7 );
+ periodTypes.add( PeriodType.getAvailablePeriodTypes().get( 8 ) );
+
+ for ( PeriodType periodType : periodTypes )
{
String column = periodType.getName().toLowerCase();
String[] col = { column, "character varying(10)", "ps." + column };
=== modified file 'dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/HibernateGenericStore.java'
--- dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/HibernateGenericStore.java 2013-03-16 14:22:03 +0000
+++ dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/HibernateGenericStore.java 2013-03-18 16:39:07 +0000
@@ -904,7 +904,7 @@
protected boolean sharingEnabled()
{
- return SharingUtils.isSupported( clazz ) && !(currentUserService.getCurrentUser() == null ||
+ return SharingUtils.isSupported( clazz ) && !( currentUserService.getCurrentUser() == null ||
currentUserService.getCurrentUser().getUserCredentials().getAllAuthorities().contains( SharingUtils.SHARING_OVERRIDE_AUTHORITY ));
}