This is an automated email from the ASF dual-hosted git repository. awasum pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/fineract-cn-group.git
commit a018cdd3e1480b505fb725e80748084288a748e8 Author: kengneruphine <[email protected]> AuthorDate: Fri Jul 6 11:39:02 2018 +0100 modifying updateGroup request in the groupAggregate.java file --- .../group/internal/command/handler/GroupAggregate.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/service/src/main/java/org/apache/fineract/cn/group/internal/command/handler/GroupAggregate.java b/service/src/main/java/org/apache/fineract/cn/group/internal/command/handler/GroupAggregate.java index 804aa26..409aa66 100644 --- a/service/src/main/java/org/apache/fineract/cn/group/internal/command/handler/GroupAggregate.java +++ b/service/src/main/java/org/apache/fineract/cn/group/internal/command/handler/GroupAggregate.java @@ -191,21 +191,21 @@ public class GroupAggregate { @EventEmitter(selectorName = EventConstants.SELECTOR_NAME, selectorValue = EventConstants.PUT_GROUP) public String updateGroup(final UpdateGroupCommand updateGroupCommand) { final Group group = updateGroupCommand.group(); - final GroupDefinitionEntity groupDefinitionEntity = - this.groupDefinitionRepository.findByIdentifier(group.getGroupDefinitionIdentifier()) - .orElseThrow( - () -> ServiceException.notFound("Group definition {0} not found.", group.getGroupDefinitionIdentifier()) - ); + //final GroupDefinitionEntity groupDefinitionEntity = + // this.groupDefinitionRepository.findByIdentifier(group.getGroupDefinitionIdentifier()) + // .orElseThrow( + // () -> ServiceException.notFound("Group definition {0} not found.", group.getGroupDefinitionIdentifier()) + // ); final AddressEntity savedAddress = this.addressRepository.save(AddressMapper.map(group.getAddress())); final GroupEntity groupEntity = findGroupEntityOrThrow(group.getIdentifier()); - groupEntity.setGroupDefinition(groupDefinitionEntity); - groupEntity.setIdentifier(group.getIdentifier()); + // groupEntity.setGroupDefinition(groupDefinitionEntity); + // groupEntity.setIdentifier(group.getIdentifier()); groupEntity.setName(group.getName()); groupEntity.setOffice(group.getOffice()); groupEntity.setWeekday(group.getWeekday()); - groupEntity.setGroupStatus(group.getStatus()); + // groupEntity.setGroupStatus(group.getStatus()); //groupEntity.setAddressEntity(group.getAddress()); if (group.getAssignedEmployee() != null) {
