From d2740a76b7644764a47c28e273fb3d65676afe43 Mon Sep 17 00:00:00 2001 From: trifonnt Date: Tue, 20 Oct 2009 11:04:43 +0000 Subject: [PATCH] Minor code formating. --- .../org/adempiere/server/rpl/imp/ImportHelper.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/serverRoot/src/main/server/org/adempiere/server/rpl/imp/ImportHelper.java b/serverRoot/src/main/server/org/adempiere/server/rpl/imp/ImportHelper.java index 408fdef3e8..ba24778ace 100644 --- a/serverRoot/src/main/server/org/adempiere/server/rpl/imp/ImportHelper.java +++ b/serverRoot/src/main/server/org/adempiere/server/rpl/imp/ImportHelper.java @@ -178,20 +178,20 @@ public class ImportHelper { boolean resultSave=false; if(ReplicationEvent == ModelValidator.TYPE_BEFORE_DELETE || ReplicationEvent == ModelValidator.TYPE_BEFORE_DELETE_REPLICATION || - ReplicationEvent == ModelValidator.TYPE_DELETE) - resultSave=po.delete(true); - else + ReplicationEvent == ModelValidator.TYPE_DELETE) { + resultSave=po.delete(true); + } else { //TODO: Create a Replication Type "BROADCAST" now we are using MERGE if(ReplicationType.equals(X_AD_ReplicationTable.REPLICATIONTYPE_Merge)) { resultSave = po.saveReplica(true); MReplicationStrategy rplStrategy = new MReplicationStrategy(client.getCtx(), client.getAD_ReplicationStrategy_ID(), null); ExportHelper expHelper = new ExportHelper(client, rplStrategy); - expHelper.exportRecord( po, MReplicationStrategy.REPLICATION_TABLE,X_AD_ReplicationTable.REPLICATIONTYPE_Reference,ModelValidator.TYPE_AFTER_CHANGE); - } - else + expHelper.exportRecord( po, MReplicationStrategy.REPLICATION_TABLE, X_AD_ReplicationTable.REPLICATIONTYPE_Reference, ModelValidator.TYPE_AFTER_CHANGE); + } else { resultSave = po.saveReplica(true); + } } result.append("ResultSave=").append(resultSave).append("; ");