dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23566
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11467: (PT) Validation bug fixed.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 11467 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-07-22 15:27:33 +0200
message:
(PT) Validation bug fixed.
modified:
dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/core.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-pivot/src/main/webapp/dhis-web-pivot/app/scripts/core.js'
--- dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/core.js 2013-07-19 16:42:11 +0000
+++ dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/core.js 2013-07-22 13:25:23 +0000
@@ -1544,7 +1544,7 @@
valueItemsRow = [];
valueObjectsRow = [];
- for (var j = 0, id, value, htmlValue, empty, uuid, uuids; j < colSize; j++) {
+ for (var j = 0, id, value, htmlValue, empty, uuid, uuids = []; j < colSize; j++) {
empty = false;
// meta data uid
@@ -1554,7 +1554,12 @@
uuid = Ext.data.IdGenerator.get('uuid').generate();
// col and row dim element ids
- uuids = [].concat(xColAxis.objects.all[xColAxis.dims - 1][j].uuids, xRowAxis.objects.all[xRowAxis.dims - 1][i].uuids);
+ if (xColAxis) {
+ uuids = uuids.concat(xColAxis.objects.all[xColAxis.dims - 1][j].uuids);
+ }
+ if (xRowAxis) {
+ uuids = uuids.concat(xRowAxis.objects.all[xRowAxis.dims - 1][i].uuids);
+ }
if (idValueMap[id]) {
value = parseFloat(idValueMap[id]);