Skip to content

Commit

Permalink
#178: Removed nursey from the enum list for education type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flava177 committed Nov 15, 2024
1 parent 71ff423 commit e59cf45
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ private void setUpLayoutBinding(final BaseEditFragment fragment, final Person re
List<Item> marriageList = DataUtils.getEnumItems(MaritalStatus.class, true);
List<Item> yesNoList = DataUtils.getEnumItems(YesNo.class, true);
List<Item> causeOfDeathList = DataUtils.getEnumItems(CauseOfDeath.class, true);
List<Item> educationList = DataUtils.getEnumItems(EducationType.class, true);
List<Item> diseaseList = DataUtils.toItems(DiseaseConfigurationCache.getInstance().getAllDiseases(true, true, true));
if (record.getCauseOfDeathDisease() != null && !diseaseList.contains(record.getCauseOfDeathDisease())) {
diseaseList.add(DataUtils.toItem(record.getCauseOfDeathDisease()));
Expand Down Expand Up @@ -250,7 +251,8 @@ private void setUpLayoutBinding(final BaseEditFragment fragment, final Person re
contentBinding.personOccupationType.initializeSpinner(occupationTypeList);
contentBinding.personArmedForcesRelationType.initializeSpinner(DataUtils.getEnumItems(ArmedForcesRelationType.class, true));
contentBinding.personApplicable.initializeSpinner(yesNoList);
contentBinding.personEducationType.initializeSpinner(DataUtils.getEnumItems(EducationType.class, true));
contentBinding.personEducationType.initializeSpinner(educationList);
educationList.remove(new Item<>(EducationType.NURSERY.toString(), EducationType.NURSERY));
// Determine which values should show as personPresentCondition (the person may have a value that by default is not shown for the current disease)
List<Item> items = DataUtils.getEnumItems(PresentCondition.class, true, getFieldVisibilityCheckers());
PresentCondition currentValue = record.getPresentCondition();
Expand Down

0 comments on commit e59cf45

Please sign in to comment.