← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21165: Minor i18n fix for AttributeService

 

------------------------------------------------------------
revno: 21165
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-11-23 16:11:11 +0700
message:
  Minor i18n fix for AttributeService
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-23 09:06:48 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/attribute/DefaultAttributeService.java	2015-11-23 09:11:11 +0000
@@ -137,19 +137,19 @@
     @Override
     public List<Attribute> getAttributes( Class<?> klass )
     {
-        return attributeStore.getAttributes( klass );
+        return new ArrayList<>( i18n( i18nService, attributeStore.getAttributes( klass ) ) );
     }
 
     @Override
     public List<Attribute> getMandatoryAttributes( Class<?> klass )
     {
-        return attributeStore.getMandatoryAttributes( klass );
+        return new ArrayList<>( i18n( i18nService, attributeStore.getMandatoryAttributes( klass ) ) );
     }
 
     @Override
     public List<Attribute> getUniqueAttributes( Class<?> klass )
     {
-        return attributeStore.getUniqueAttributes( klass );
+        return new ArrayList<>( i18n( i18nService, attributeStore.getUniqueAttributes( klass ) ) );
     }
 
     @Override