dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17959
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7368: Single event, fixed bug, placeholder lists must be cleared before adding new options so we don't ...
------------------------------------------------------------
revno: 7368
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2012-06-24 16:49:04 +0200
message:
Single event, fixed bug, placeholder lists must be cleared before adding new options so we don't just keep adding new ones
modified:
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.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-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java 2012-06-24 14:29:16 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java 2012-06-24 14:49:04 +0000
@@ -39,14 +39,11 @@
import org.hibernate.criterion.Restrictions;
import org.hisp.dhis.common.Grid;
import org.hisp.dhis.common.GridHeader;
-import org.hisp.dhis.dataelement.DataElementService;
import org.hisp.dhis.hibernate.HibernateGenericStore;
import org.hisp.dhis.jdbc.StatementBuilder;
import org.hisp.dhis.organisationunit.OrganisationUnit;
import org.hisp.dhis.organisationunit.OrganisationUnitLevel;
import org.hisp.dhis.patient.Patient;
-import org.hisp.dhis.patient.PatientAttributeService;
-import org.hisp.dhis.patient.PatientIdentifierTypeService;
import org.hisp.dhis.patientreport.TabularReportColumn;
import org.hisp.dhis.program.ProgramInstance;
import org.hisp.dhis.program.ProgramStage;
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js 2012-06-23 15:48:45 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js 2012-06-24 14:49:04 +0000
@@ -36,6 +36,9 @@
},
function( json )
{
+ clearListById('dataElementId');
+ clearListById('compulsoryDE');
+
jQuery( '#dataElementId').append( '<option value="">[' + i18n_please_select + ']</option>' );
for ( i in json.programStageDataElements ) {
jQuery( '#dataElementId').append( '<option value="' + json.programStageDataElements[i].id + '">' + json.programStageDataElements[i].name + '</option>' );
@@ -245,17 +248,6 @@
});
}
-
-
-
-
-
-
-
-
-
-
-
function loadEventRegistrationForm()
{
hideById('selectDiv');
@@ -301,13 +293,6 @@
} );
}
-
-
-
-
-
-
-
function loadEventForm()
{
hideById('dataEntryFormDiv');
@@ -345,8 +330,7 @@
disable('deleteCurrentEventBtn');
disable('completeBtn');
hideById('loaderDiv');
- }
-
+ }
});
}
@@ -375,7 +359,5 @@
{
showWarningMessage( json.message );
}
-
});
}
-