← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13684: Minor

 

------------------------------------------------------------
revno: 13684
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-01-09 18:09:05 +0100
message:
  Minor
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattribute/SavePatientAttributeInListNoProgramAction.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-api/src/main/java/org/hisp/dhis/program/Program.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java	2014-01-09 15:34:25 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java	2014-01-09 17:09:05 +0000
@@ -180,6 +180,9 @@
         return elements;
     }
     
+    /**
+     * Returns PatientIdentifierTypes from ProgramPatientIdentifierTypes.
+     */
     public List<PatientIdentifierType> getIdentifierTypes()
     {
         List<PatientIdentifierType> types = new ArrayList<PatientIdentifierType>();
@@ -192,6 +195,9 @@
         return types;
     }
     
+    /**
+     * Returns PatientAttributes from ProgramPatientAttributes.
+     */
     public List<PatientAttribute> getAttributes()
     {
         List<PatientAttribute> attributes = new ArrayList<PatientAttribute>();

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattribute/SavePatientAttributeInListNoProgramAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattribute/SavePatientAttributeInListNoProgramAction.java	2014-01-08 16:13:32 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattribute/SavePatientAttributeInListNoProgramAction.java	2014-01-09 17:09:05 +0000
@@ -39,9 +39,6 @@
 
 /**
  * @author Chau Thu Tran
- * 
- * @version $ SavePatientAttributeInListNoProgramAction.java Jan 8, 2014 8:52:31
- *          PM $
  */
 public class SavePatientAttributeInListNoProgramAction
     implements Action
@@ -91,7 +88,6 @@
         for ( String objectId : selectedAttributeIds )
         {
             // Identifier type
-
             String[] id = objectId.split( "_" );
             if ( id[0].equals( PREFIX_IDENTYFITER_TYPE ) )
             {
@@ -106,7 +102,7 @@
             }
 
             // Attribute
-            else
+            else if ( id[0].equals( PREFIX_ATTRIBUTE ) )
             {
                 PatientAttribute patientAttribute = patientAttributeService.getPatientAttribute( Integer
                     .parseInt( id[1] ) );