------------------------------------------------------------ revno: 18804 committer: Tran Chau<[email protected]> 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 + ']' );
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

