Skip to content

Commit

Permalink
kick (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzlucas authored Jan 14, 2025
1 parent b42c227 commit b164fbb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export const Messages = {
projectCreatedSuccess: 'Project Created Successfully',
projectCreatedFailure: 'Create project failed',
projectUpdatedSuccess: 'Project Updated Successfully',
projectUpdatedFailure: 'Create Updated failed',
projectUpdatedFailure: 'Project Updated failed',
confirmCancel: 'Are you sure you want to cancel?',
};
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,12 @@ public ProjectEntity updateEntity(ProjectModel model, ProjectEntity existingEnti
entity.setRevisionCount(nonNullOrDefault(model.getRevisionCount(), existingEntity.getRevisionCount()));
entity.setProjectStatusCode(existingEntity.getProjectStatusCode());
entity.setSiteUnitName(nonNullOrDefault(model.getSiteUnitName(), existingEntity.getSiteUnitName()));
entity.setProgramAreaGuid((UUID) nonNullOrDefault(model.getProgramAreaGuid(), existingEntity.getProgramAreaGuid()));
entity.setProgramAreaGuid(
nonNullOrDefault(
model.getProgramAreaGuid() != null ? UUID.fromString(model.getProgramAreaGuid()) : null,
existingEntity.getProgramAreaGuid()
)
);
entity.setForestRegionOrgUnitId(nonNullOrDefault(model.getForestRegionOrgUnitId(), existingEntity.getForestRegionOrgUnitId()));
entity.setForestDistrictOrgUnitId(nonNullOrDefault(model.getForestDistrictOrgUnitId(), existingEntity.getForestDistrictOrgUnitId()));
entity.setFireCentreOrgUnitId(nonNullOrDefault(model.getFireCentreOrgUnitId(), existingEntity.getFireCentreOrgUnitId()));
Expand Down

0 comments on commit b164fbb

Please sign in to comment.