dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #22565
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10876: send conflict and use current username instead if storedBy is >= 31 characters
------------------------------------------------------------
revno: 10876
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-05-17 21:53:28 +0700
message:
send conflict and use current username instead if storedBy is >= 31 characters
modified:
dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/event/BaseEventService.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-dxf2/src/main/java/org/hisp/dhis/dxf2/event/BaseEventService.java'
--- dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/event/BaseEventService.java 2013-05-17 10:26:46 +0000
+++ dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/event/BaseEventService.java 2013-05-17 14:53:28 +0000
@@ -191,6 +191,11 @@
{
storedBy = currentUserService.getCurrentUsername();
}
+ else if ( storedBy.length() >= 31 )
+ {
+ importSummary.getConflicts().add( new ImportConflict( "storedBy", storedBy + " is more than 31 characters, using current username instead." ) );
+ storedBy = currentUserService.getCurrentUsername();
+ }
for ( DataValue dataValue : event.getDataValues() )
{