------------------------------------------------------------
revno: 21158
committer: Morten Olav Hansen <[email protected]>
branch nick: dhis2
timestamp: Mon 2015-11-23 09:31:01 +0700
message:
  minor fix
modified:
  
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AttributeUtils.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-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AttributeUtils.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AttributeUtils.java	2015-11-20 05:42:56 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AttributeUtils.java	2015-11-23 02:31:01 +0000
@@ -88,15 +88,15 @@
                     else
                     {
                         attributeValueItem.setValue( attributeValue.getValue() );
+
                         try
                         {
                             attributeService.updateAttributeValue( object, attributeValueItem );
+                            attributeValue = null;
                         }
                         catch ( NonUniqueAttributeValueException ignored ) // ignore for now
                         {
                         }
-
-                        attributeValue = null;
                     }
                 }
             }

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to