← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11258: Period type script bug fixed.

 

------------------------------------------------------------
revno: 11258
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-06-25 13:11:02 +0200
message:
  Period type script bug fixed.
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodTypeNoDep.js


--
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-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodTypeNoDep.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodTypeNoDep.js	2012-12-10 13:35:54 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodTypeNoDep.js	2013-06-25 11:11:02 +0000
@@ -327,7 +327,7 @@
 			date.setDate( date.getDate() + 1 );
 			period['startDate'] = format_yyyymmdd( date );
 			period['name'] = monthNames[9] + ' ' + date.getFullYear() + ' - ' + monthNames[8] + ' ' + ( date.getFullYear() + 1 );
-			period['id'] = 'FinancialOct_' + period['startDate'];
+			period['id'] = date.getFullYear() + 'Oct';
 			periods.push( period );
 			date.setDate( date.getDate() - 1 );
 		}
@@ -359,7 +359,7 @@
 			date.setDate( date.getDate() + 1 );
 			period['startDate'] = format_yyyymmdd( date );
 			period['name'] = monthNames[6] + ' ' + date.getFullYear() + ' - ' + monthNames[5] + ' ' + ( date.getFullYear() + 1 );
-			period['id'] = 'FinancialJuly_' + period['startDate'];
+			period['id'] = date.getFullYear() + 'July';
 			periods.push( period );
 			date.setDate( date.getDate() - 1 );
 		}
@@ -391,7 +391,7 @@
 			date.setDate( date.getDate() + 1 );
 			period['startDate'] = format_yyyymmdd( date );
 			period['name'] = monthNames[3] + ' ' + date.getFullYear() + ' - ' + monthNames[2] + ' ' + ( date.getFullYear() + 1 );
-			period['id'] = 'FinancialApril_' + period['startDate'];
+			period['id'] = date.getFullYear() + 'April';
 			periods.push( period );
 			date.setDate( date.getDate() - 1 );
 		}