Skip to content

Commit

Permalink
Merge pull request #13079 from SORMAS-Foundation/bugfix-13077-fix_err…
Browse files Browse the repository at this point in the history
…or-when-creating-cases-with-user-role-hospital-informant-with-associated-facility

#13077 - fixes error when creating a new case as hospital informant user with an associated facility
  • Loading branch information
obinna-h-n authored Apr 24, 2024
2 parents 878fdee + 2d3b4c3 commit 8516db0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ public CommitDiscardWrapperComponent<CaseCreateForm> getCaseCreateComponent(
caze.setResponsibleDistrict(healthFacility.getDistrict());
caze.setResponsibleCommunity(healthFacility.getCommunity());
caze.setHealthFacility(healthFacility.toReference());
caze.setFacilityType(healthFacility.getType());
} else if (convertedTravelEntry == null) {
caze.setResponsibleRegion(user.getRegion());
caze.setResponsibleDistrict(user.getDistrict());
Expand Down

0 comments on commit 8516db0

Please sign in to comment.