Skip to content

Commit

Permalink
Fix for FBR-469 - Update center name (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardohildt authored Dec 1, 2023
1 parent 5ea8245 commit d018414
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ public CommandProcessingResult generateCentersByPortfolio(Portfolio portfolio) {

for (CodeValueData meetingDay : meetingDayOptions) {
// complete required fields for entity
final String centerName = generateCenterName(portfolio.getId(), rangeTemplateData, meetingDay);
final String centerName = generateCenterName(portfolio.getName(), rangeTemplateData, meetingDay);
final Integer meetingDayValue = meetingDay.getId().intValue();
final Integer meetingStart = rangeTemplateData.getStartDay();
final Integer meetingEnd = rangeTemplateData.getEndDay();
Expand Down Expand Up @@ -1269,9 +1269,9 @@ private void handleCenterDataIntegrityIssues(final JsonCommand command, final Th
"Unknown data integrity issue with resource.");
}

private String generateCenterName(Long portfolioId, RangeTemplateData rangeTemplateData, CodeValueData meetingDay) {
private String generateCenterName(String portfolioName, RangeTemplateData rangeTemplateData, CodeValueData meetingDay) {
final StringBuilder centerName = new StringBuilder();
centerName.append(portfolioId);
centerName.append(portfolioName);
centerName.append("-");
centerName.append(rangeTemplateData.getCode());
centerName.append("-");
Expand Down

0 comments on commit d018414

Please sign in to comment.