dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30336
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15397: Fixed bug - Repeatable program stage not stored.
------------------------------------------------------------
revno: 15397
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-05-26 13:02:57 +0800
message:
Fixed bug - Repeatable program stage not stored.
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageInstance.java
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/RegisterIrregularEncounterAction.java
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js
--
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/ProgramStageInstance.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageInstance.java 2014-05-23 15:28:46 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageInstance.java 2014-05-26 05:02:57 +0000
@@ -87,46 +87,7 @@
this.programInstance = programInstance;
this.programStage = programStage;
}
-
- // -------------------------------------------------------------------------
- // hashCode and equals
- // -------------------------------------------------------------------------
-
- @Override
- public boolean equals( Object object )
- {
- if ( this == object )
- {
- return true;
- }
-
- if ( object == null )
- {
- return false;
- }
-
- if ( !getClass().isAssignableFrom( object.getClass() ) )
- {
- return false;
- }
-
- final ProgramStageInstance other = (ProgramStageInstance) object;
-
- return programInstance.equals( other.getProgramInstance() ) && programStage.equals( other.getProgramStage() );
- }
-
- @Override
- public int hashCode()
- {
- final int prime = 31;
- int result = 1;
-
- result = result * prime + programInstance.hashCode();
- result = result * prime + programStage.hashCode();
-
- return result;
- }
-
+
// -------------------------------------------------------------------------
// Getters and setters
// -------------------------------------------------------------------------
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/RegisterIrregularEncounterAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/RegisterIrregularEncounterAction.java 2014-03-18 08:10:10 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/RegisterIrregularEncounterAction.java 2014-05-26 05:02:57 +0000
@@ -124,9 +124,9 @@
programStageInstance.setProgramInstance( programInstance );
programStageInstance.setProgramStage( programStage );
programStageInstance.setDueDate( format.parseDate( dueDate ) );
-
+
message = Integer.toString( programStageInstanceService.addProgramStageInstance( programStageInstance ) );
-
+
return SUCCESS;
}
}
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2014-04-23 23:45:11 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2014-05-26 05:02:57 +0000
@@ -1097,7 +1097,7 @@
$( this ).val( "" );
if(!unSave)
saveVal( dataElementUid );
- input.data( "autocomplete" ).term = "";
+ input.data( "uiAutocomplete" ).term = "";
return false;
}
}
@@ -1105,7 +1105,7 @@
})
.addClass( "ui-widget" );
- input.data( "autocomplete" )._renderItem = function( ul, item ) {
+ input.data( "uiAutocomplete" )._renderItem = function( ul, item ) {
return $( "<li></li>" )
.data( "item.autocomplete", item )
.append( "<a>" + item.label + "</a>" )