danielales2541 commented on code in PR #4487:
URL: https://github.com/apache/fineract/pull/4487#discussion_r2010664715
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/group/serialization/GroupingTypesDataValidator.java:
##########
@@ -177,17 +177,17 @@ public void validateForCreateCenterGroup(final
JsonCommand command) {
baseDataValidator.reset().parameter(GroupingTypesApiConstants.externalIdParamName).value(externalId).notExceedingLengthOf(100);
}
- final Long centerId =
this.fromApiJsonHelper.extractLongNamed(GroupingTypesApiConstants.centerIdParamName,
element);
-
baseDataValidator.reset().parameter(GroupingTypesApiConstants.centerIdParamName).value(centerId).notNull().integerGreaterThanZero();
+ // final Long centerId =
this.fromApiJsonHelper.extractLongNamed(GroupingTypesApiConstants.centerIdParamName,
element);
Review Comment:
In Excel, it asks for a center name, which pulls the center ID, but this
does not appear as mandatory. With this, the validation makes it mandatory,
interrupting the creation of groups.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]