fineract-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100126 <...@git.apache.org>
Subject [GitHub] incubator-fineract pull request #170: commit for FINERACT-46 (Throw an excep...
Date Thu, 28 Jul 2016 10:57:08 GMT
Github user nazeer1100126 commented on a diff in the pull request:

    https://github.com/apache/incubator-fineract/pull/170#discussion_r72602036
  
    --- Diff: fineract-provider/src/main/java/org/apache/fineract/organisation/staff/service/StaffWritePlatformServiceJpaRepositoryImpl.java
---
    @@ -91,6 +92,17 @@ public CommandProcessingResult updateStaff(final Long staffId, final
JsonCommand
     
                 final Staff staffForUpdate = this.staffRepository.findOne(staffId);
                 if (staffForUpdate == null) { throw new StaffNotFoundException(staffId);
}
    +            
    +            final boolean isActive = command.booleanPrimitiveValueOfParameterNamed("isActive");
    +            
    +            if(staffForUpdate.isActive() && !isActive) {
    +                final boolean isAnyActiveEntityAssociatedWithStaff = this.staffRepository.
    --- End diff --
    
    Use StaffReadPlatformService instead of repository


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message