dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #41446
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21123: make sure that attributeValue exists in object.attributeValue Set
------------------------------------------------------------
revno: 21123
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-11-19 11:58:50 +0700
message:
make sure that attributeValue exists in object.attributeValue Set
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/attribute/DefaultAttributeService.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/attribute/DefaultAttributeService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/attribute/DefaultAttributeService.java 2015-11-18 05:35:33 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/attribute/DefaultAttributeService.java 2015-11-19 04:58:50 +0000
@@ -30,7 +30,6 @@
import org.hisp.dhis.common.IdentifiableObject;
import org.hisp.dhis.i18n.I18nService;
-import org.hisp.dhis.schema.Schema;
import org.hisp.dhis.schema.SchemaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
@@ -262,6 +261,7 @@
attributeValue.setAutoFields();
attributeValueStore.save( attributeValue );
+ object.getAttributeValues().add( attributeValue );
}
@Override
@@ -275,6 +275,7 @@
attributeValue.setAutoFields();
attributeValueStore.update( attributeValue );
+ object.getAttributeValues().add( attributeValue );
}
@Override