dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36782
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18804: Minor fix.
------------------------------------------------------------
revno: 18804
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-04-03 17:05:25 +0700
message:
Minor fix.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/organisationUnit.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-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/organisationUnit.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/organisationUnit.js 2015-04-03 09:43:49 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/organisationUnit.js 2015-04-03 10:05:25 +0000
@@ -40,7 +40,8 @@
setInnerHTML( 'descriptionField', json.organisationUnit.description );
setInnerHTML( 'openingDateField', json.organisationUnit.openingDate );
setInnerHTML( 'idField', json.organisationUnit.uid );
- setInnerHTML( 'createdByField', json.organisationUnit.user.name );
+ var userName = json.organisationUnit.user.name != "" ? json.organisationUnit.user.name : '[' + none + ']';
+ setInnerHTML( 'createdByField', userName );
var orgUnitCode = json.organisationUnit.code;
setInnerHTML( 'codeField', orgUnitCode ? orgUnitCode : '[' + none + ']' );