From e59cf458fa6d48d7386fab044c20a7a30092c30e Mon Sep 17 00:00:00 2001 From: Flava177 Date: Wed, 13 Nov 2024 10:14:18 +0000 Subject: [PATCH] #178: Removed nursey from the enum list for education type. --- .../de/symeda/sormas/app/person/edit/PersonEditFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sormas-app/app/src/main/java/de/symeda/sormas/app/person/edit/PersonEditFragment.java b/sormas-app/app/src/main/java/de/symeda/sormas/app/person/edit/PersonEditFragment.java index d642db67081..cd984d6643e 100644 --- a/sormas-app/app/src/main/java/de/symeda/sormas/app/person/edit/PersonEditFragment.java +++ b/sormas-app/app/src/main/java/de/symeda/sormas/app/person/edit/PersonEditFragment.java @@ -156,6 +156,7 @@ private void setUpLayoutBinding(final BaseEditFragment fragment, final Person re List marriageList = DataUtils.getEnumItems(MaritalStatus.class, true); List yesNoList = DataUtils.getEnumItems(YesNo.class, true); List causeOfDeathList = DataUtils.getEnumItems(CauseOfDeath.class, true); + List educationList = DataUtils.getEnumItems(EducationType.class, true); List diseaseList = DataUtils.toItems(DiseaseConfigurationCache.getInstance().getAllDiseases(true, true, true)); if (record.getCauseOfDeathDisease() != null && !diseaseList.contains(record.getCauseOfDeathDisease())) { diseaseList.add(DataUtils.toItem(record.getCauseOfDeathDisease())); @@ -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 items = DataUtils.getEnumItems(PresentCondition.class, true, getFieldVisibilityCheckers()); PresentCondition currentValue = record.getPresentCondition();