dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #28647
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14320: DV, user ou bug fixed.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 14320 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-03-20 15:30:45 +0100
message:
DV, user ou bug fixed.
modified:
dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/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-visualizer/src/main/webapp/dhis-web-visualizer/app/scripts/core.js'
--- dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/scripts/core.js 2014-03-20 09:06:16 +0000
+++ dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/scripts/core.js 2014-03-20 14:30:19 +0000
@@ -1093,10 +1093,14 @@
userOugc;
if (init.user && isUserOrgunit) {
- userOu = [{
- id: init.user.ou,
- name: response.metaData.names[init.user.ou]
- }];
+ userOu = [];
+
+ for (var j = 0; j < init.user.ou.length; j++) {
+ userOu.push({
+ id: init.user.ou[j],
+ name: response.metaData.names[init.user.ou[j]]
+ });
+ }
}
if (init.user && init.user.ouc && isUserOrgunitChildren) {
userOuc = [];