dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27108
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13445: minor fixes
------------------------------------------------------------
revno: 13445
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-12-27 14:33:33 +0100
message:
minor fixes
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/Identifier.java
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/InterpretationController.java
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/event/PersonController.java
--
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-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/Identifier.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/Identifier.java 2013-12-23 10:40:20 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/Identifier.java 2013-12-27 13:33:33 +0000
@@ -56,6 +56,12 @@
this.value = value;
}
+ public Identifier( String identifier, String value )
+ {
+ this.identifier = identifier;
+ this.value = value;
+ }
+
public Identifier( String identifier, String type, String value )
{
this.identifier = identifier;
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/InterpretationController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/InterpretationController.java 2013-12-02 14:23:07 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/InterpretationController.java 2013-12-27 13:33:33 +0000
@@ -351,7 +351,7 @@
interpretationService.updateInterpretation( interpretation );
}
- @RequestMapping( value = "/{uid}/comment", method = RequestMethod.POST, consumes = { "text/html", "text/plain" } )
+ @RequestMapping( value = { "/{uid}/comment", "/{uid}/comments" }, method = RequestMethod.POST, consumes = { "text/html", "text/plain" } )
public void postComment(
@PathVariable( "uid" ) String uid,
@RequestBody String text, HttpServletResponse response )
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/event/PersonController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/event/PersonController.java 2013-12-23 12:58:46 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/event/PersonController.java 2013-12-27 13:33:33 +0000
@@ -96,7 +96,7 @@
if ( identifier != null )
{
- Identifier id = new Identifier( identifierType, "", identifier );
+ Identifier id = new Identifier( identifierType, identifier );
persons.getPersons().add( personService.getPerson( id ) );
}
else if ( orgUnitUid != null )