From 582ef5de6c857c4bfd9bc5ab7531c65f791731ad Mon Sep 17 00:00:00 2001 From: Nazeer Hussain Shaik Date: Wed, 17 May 2017 13:40:16 +0530 Subject: [PATCH] Fixing Regression issues of loan and savings creation --- .../staff/service/StaffReadPlatformServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/organisation/staff/service/StaffReadPlatformServiceImpl.java b/fineract-provider/src/main/java/org/apache/fineract/organisation/staff/service/StaffReadPlatformServiceImpl.java index da2cea70f..ed675a17f 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/organisation/staff/service/StaffReadPlatformServiceImpl.java +++ b/fineract-provider/src/main/java/org/apache/fineract/organisation/staff/service/StaffReadPlatformServiceImpl.java @@ -31,7 +31,6 @@ import org.apache.fineract.infrastructure.core.exception.UnrecognizedQueryParamE import org.apache.fineract.infrastructure.core.service.RoutingDataSource; import org.apache.fineract.infrastructure.security.service.PlatformSecurityContext; import org.apache.fineract.infrastructure.security.utils.ColumnValidator; -import org.apache.fineract.infrastructure.security.utils.SQLInjectionValidator; import org.apache.fineract.organisation.staff.data.StaffData; import org.apache.fineract.organisation.staff.exception.StaffNotFoundException; import org.apache.fineract.portfolio.client.domain.ClientStatus; @@ -162,7 +161,7 @@ public class StaffReadPlatformServiceImpl implements StaffReadPlatformService { @Override public Collection retrieveAllLoanOfficersInOfficeById(final Long officeId) { - return retrieveAllStaff(" office_id = ? and is_loan_officer=1", officeId); + return retrieveAllStaff(" office_id = ? and is_loan_officer=1 and o.hierarchy like ?", officeId); } @Override