From d7e7feb3615014c914053a67ab03fa29c90884a5 Mon Sep 17 00:00:00 2001 From: Nazeer Hussain Shaik Date: Wed, 22 Jun 2016 07:20:23 +0530 Subject: [PATCH] FINERACT-183 Not able to save Edit Fixed deposit product page displays Internal server error --- .../portfolio/savings/domain/SavingsProduct.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsProduct.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsProduct.java index 4415c7177..aadf2caa2 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsProduct.java +++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsProduct.java @@ -303,7 +303,12 @@ public class SavingsProduct extends AbstractPersistable { this.withHoldTax = withHoldTax; this.taxGroup = taxGroup; - this.isDormancyTrackingActive = isDormancyTrackingActive; + if(isDormancyTrackingActive == null) { + this.isDormancyTrackingActive = Boolean.FALSE ; + }else { + this.isDormancyTrackingActive = isDormancyTrackingActive; + } + this.daysToInactive = daysToInactive; this.daysToDormancy = daysToDormancy; this.daysToEscheat = daysToEscheat; @@ -590,7 +595,7 @@ public class SavingsProduct extends AbstractPersistable { this.daysToEscheat = newValue; } - if(!this.isDormancyTrackingActive){ + if(this.isDormancyTrackingActive == null || !this.isDormancyTrackingActive){ this.daysToInactive = null; this.daysToDormancy = null; this.daysToEscheat = null;