fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject [1/2] incubator-fineract git commit: FINERACT-364
Date Fri, 20 Jan 2017 08:21:37 GMT
Repository: incubator-fineract
Updated Branches:
  refs/heads/develop 3c2128ffb -> d8a0a0742


FINERACT-364


Project: http://git-wip-us.apache.org/repos/asf/incubator-fineract/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-fineract/commit/0173c8d0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-fineract/tree/0173c8d0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-fineract/diff/0173c8d0

Branch: refs/heads/develop
Commit: 0173c8d05fd33a7ac59358beb4321edcca6f9b68
Parents: 80fada2
Author: Nazeer Hussain Shaik <nazeer.shaik@confluxtechnologies.com>
Authored: Tue Jan 17 17:38:01 2017 +0530
Committer: Nazeer Hussain Shaik <nazeer.shaik@confluxtechnologies.com>
Committed: Tue Jan 17 17:38:01 2017 +0530

----------------------------------------------------------------------
 .../commands/service/SynchronousCommandProcessingService.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/0173c8d0/fineract-provider/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java
----------------------------------------------------------------------
diff --git a/fineract-provider/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java
b/fineract-provider/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java
index 8466d33..0b73381 100755
--- a/fineract-provider/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java
@@ -96,7 +96,8 @@ public class SynchronousCommandProcessingService implements CommandProcessingSer
                 result.getSavingsId(), result.getProductId(), result.getTransactionId());
 
         String changesOnlyJson = null;
-        if (result.hasChanges()) {
+        boolean rollBack = (rollbackTransaction || result.isRollbackTransaction()) &&
!isApprovedByChecker ;
+        if (result.hasChanges() && !rollBack) {
             changesOnlyJson = this.toApiJsonSerializer.serializeResult(result.getChanges());
             commandSourceResult.updateJsonTo(changesOnlyJson);
         }


Mime
View raw message