← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21943: minor bugfix for option, make sure that UIDs are generated on create, also added to identitypopul...

 

------------------------------------------------------------
revno: 21943
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2016-02-11 14:17:48 +0700
message:
  minor bugfix for option, make sure that UIDs are generated on create, also added to identitypopulator
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/option/Option.java
  dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml


--
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-api/src/main/java/org/hisp/dhis/option/Option.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/option/Option.java	2016-01-04 02:27:49 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/option/Option.java	2016-02-11 07:17:48 +0000
@@ -45,10 +45,12 @@
 {
     public Option()
     {
+        setAutoFields();
     }
 
     public Option( String name, String code )
     {
+        this();
         this.name = name;
         this.code = code;
     }

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml	2016-02-02 10:56:40 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml	2016-02-11 07:17:48 +0000
@@ -1403,6 +1403,7 @@
         <value>usergroup</value>
         <value>userrole</value>
         <value>optionset</value>
+        <value>option</value>
         <value>optionvalue</value>
         <value>validationcriteria</value>
         <value>trackedentity</value>