You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by "adamsaghy (via GitHub)" <gi...@apache.org> on 2024/06/17 21:18:12 UTC

Re: [PR] FINERACT-2086: Fix Savings Account Closure error [fineract]

adamsaghy commented on code in PR #3901:
URL: https://github.com/apache/fineract/pull/3901#discussion_r1643441033


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/account/service/AccountAssociationsReadPlatformServiceImpl.java:
##########
@@ -99,22 +99,22 @@ public boolean isLinkedWithAnyActiveAccount(final Long savingsId) {
 
         final List<Map<String, Object>> statusList = this.jdbcTemplate.queryForList(sql1, savingsId);
         for (final Map<String, Object> statusMap : statusList) {
-            AccountAssociationType associationType = AccountAssociationType.fromInt((Integer) statusMap.get("type"));
+            AccountAssociationType associationType = AccountAssociationType.fromInt(((Short) statusMap.get("type")).intValue());

Review Comment:
   Why is it `short`? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org