fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject incubator-fineract git commit: [Fineract-309] query result list assigned as a modifiable list
Date Mon, 02 Jan 2017 12:23:27 GMT
Repository: incubator-fineract
Updated Branches:
  refs/heads/develop 9a6b5d1c1 -> f55a16755


[Fineract-309] query result list assigned as a modifiable list


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

Branch: refs/heads/develop
Commit: f55a16755fbefe130a0781bfc46f98dafc642eee
Parents: 9a6b5d1
Author: Adi Narayana Raju <adi.raju@confluxtechnologies.com>
Authored: Mon Jan 2 12:43:10 2017 +0530
Committer: Adi Narayana Raju <adi.raju@confluxtechnologies.com>
Committed: Mon Jan 2 12:43:10 2017 +0530

----------------------------------------------------------------------
 .../service/ProductMixWritePlatformServiceJpaRepositoryImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/f55a1675/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/productmix/service/ProductMixWritePlatformServiceJpaRepositoryImpl.java
----------------------------------------------------------------------
diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/productmix/service/ProductMixWritePlatformServiceJpaRepositoryImpl.java
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/productmix/service/ProductMixWritePlatformServiceJpaRepositoryImpl.java
index de93d1a..fa46536 100644
--- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/productmix/service/ProductMixWritePlatformServiceJpaRepositoryImpl.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/productmix/service/ProductMixWritePlatformServiceJpaRepositoryImpl.java
@@ -135,7 +135,7 @@ public class ProductMixWritePlatformServiceJpaRepositoryImpl implements
ProductM
             this.fromApiJsonDeserializer.validateForUpdate(command.json());
             final Map<String, Object> changes = new LinkedHashMap<>();
 
-            final List<ProductMix> existedProductMixes = this.productMixRepository.findByProductId(productId);
+            final List<ProductMix> existedProductMixes = new ArrayList<>(this.productMixRepository.findByProductId(productId));
             if (CollectionUtils.isEmpty(existedProductMixes)) { throw new ProductMixNotFoundException(productId);
}
             final Set<String> restrictedIds = new HashSet<>(Arrays.asList(command.arrayValueOfParameterNamed("restrictedProducts")));
 


Mime
View raw message