dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #12597
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3914: fixed bug in add/update usergroup (firstname sometimes not shown)
------------------------------------------------------------
revno: 3914
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2011-06-15 14:28:27 +0200
message:
fixed bug in add/update usergroup (firstname sometimes not shown)
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonUsers.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/addUserGroupForm.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/updateUserGroupForm.vm
--
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-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonUsers.vm'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonUsers.vm 2011-06-14 08:24:07 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonUsers.vm 2011-06-15 12:28:27 +0000
@@ -4,7 +4,7 @@
{
"id": ${user.id},
"surname": "$!encoder.jsonEncode( ${user.surname} )",
- "firstname": "$!encoder.jsonEncode( ${user.firstName} )",
+ "firstName": "$!encoder.jsonEncode( ${user.firstName} )",
"email": "$!encoder.jsonEncode( ${user.email} )",
"phoneNumber": "$!encoder.jsonEncode( ${user.phoneNumber} )"
}#if( $velocityCount < $size ),#end
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/addUserGroupForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/addUserGroupForm.vm 2011-06-10 11:09:36 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/addUserGroupForm.vm 2011-06-15 12:28:27 +0000
@@ -7,7 +7,7 @@
connectedTo: 'groupMembersList',
handler: function(item) {
var option = jQuery("<option />");
- option.text( item.surname + ", " + item.firstname );
+ option.text( item.surname + ", " + item.firstName );
option.attr( "value", item.id );
return option;
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/updateUserGroupForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/updateUserGroupForm.vm 2011-06-10 11:09:36 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/updateUserGroupForm.vm 2011-06-15 12:28:27 +0000
@@ -7,7 +7,7 @@
connectedTo: 'groupMembersList',
handler: function(item) {
var option = jQuery("<option />");
- option.text( item.surname + ", " + item.firstname );
+ option.text( item.surname + ", " + item.firstName );
option.attr( "value", item.id );
return option;
@@ -71,7 +71,7 @@
<td>
<select id="groupMembersList" name="groupMembersList" multiple="multiple" style="height: 200px; width: 100%; margin-top: 22px;">
#foreach( $user in $groupMembers )
- <option value="$user.id">$encoder.htmlEncode( $user.surname ), $!encoder.htmlEncode( $user.firstname )</option>
+ <option value="$user.id">$encoder.htmlEncode( $user.surname ), $!encoder.htmlEncode( $user.firstName )</option>
#end
</select>
</td>