=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/AddPatientAction.java' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/AddPatientAction.java 2013-09-19 06:06:15 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/AddPatientAction.java 2013-10-02 11:21:46 +0000 @@ -311,7 +311,8 @@ attributeValue = new PatientAttributeValue(); attributeValue.setPatient( patient ); attributeValue.setPatientAttribute( attribute ); - + attributeValue.setValue(value); + if ( PatientAttribute.TYPE_COMBO.equalsIgnoreCase( attribute.getValueType() ) ) { PatientAttributeOption option = patientAttributeOptionService @@ -319,7 +320,6 @@ if ( option != null ) { attributeValue.setPatientAttributeOption( option ); - attributeValue.setValue( option.getName() ); } else { === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/UpdatePatientAction.java' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/UpdatePatientAction.java 2013-09-19 06:06:15 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/UpdatePatientAction.java 2013-10-02 11:21:46 +0000 @@ -292,12 +292,12 @@ if ( option != null ) { attributeValue.setPatientAttributeOption( option ); - attributeValue.setValue( option.getName() ); } else { // This option was deleted ??? } + attributeValue.setValue( value ); } else {