dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30557
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15517: ER, N/A sorting bug fixed.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 15517 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-06-02 14:41:16 +0200
message:
ER, N/A sorting bug fixed.
modified:
dhis-2/dhis-web/dhis-web-event-reports/src/main/webapp/dhis-web-event-reports/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-event-reports/src/main/webapp/dhis-web-event-reports/app/scripts/core.js'
--- dhis-2/dhis-web/dhis-web-event-reports/src/main/webapp/dhis-web-event-reports/app/scripts/core.js 2014-05-27 12:25:50 +0000
+++ dhis-2/dhis-web/dhis-web-event-reports/src/main/webapp/dhis-web-event-reports/app/scripts/core.js 2014-06-02 12:31:21 +0000
@@ -1607,6 +1607,7 @@
id = response.rows[j][i] || emptyId;
fullId = header.name + id;
parsedId = parseFloat(id);
+
displayId = Ext.isNumber(parsedId) ? parsedId : (names[id] || id);
// update names
@@ -1618,7 +1619,7 @@
// number sorting
objects.push({
id: fullId,
- sortingId: parsedId
+ sortingId: parsedId || Number.MAX_VALUE
});
}