=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/JacksonEventService.java' --- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/JacksonEventService.java 2015-09-13 21:54:23 +0000 +++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/JacksonEventService.java 2015-10-20 06:38:20 +0000 @@ -33,12 +33,12 @@ import com.fasterxml.jackson.dataformat.xml.XmlMapper; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.hisp.dhis.commons.timer.SystemTimer; +import org.hisp.dhis.commons.timer.Timer; +import org.hisp.dhis.dxf2.common.ImportOptions; import org.hisp.dhis.dxf2.importsummary.ImportSummaries; -import org.hisp.dhis.dxf2.common.ImportOptions; import org.hisp.dhis.scheduling.TaskId; import org.hisp.dhis.system.notification.NotificationLevel; -import org.hisp.dhis.commons.timer.SystemTimer; -import org.hisp.dhis.commons.timer.Timer; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.StreamUtils; import org.springframework.util.StringUtils; @@ -165,7 +165,7 @@ } else { - if ( programStageInstanceService.getProgramStageInstance( event.getEvent() ) == null ) + if ( !programStageInstanceService.programStageInstanceExists( event.getEvent() ) ) { create.add( event ); }