dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18158
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7544: Don't load custom dataentry form.
------------------------------------------------------------
revno: 7544
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-07-09 19:25:00 +0700
message:
Don't load custom dataentry form.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/LoadDataEntryAction.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-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/LoadDataEntryAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/LoadDataEntryAction.java 2012-06-27 05:12:36 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/LoadDataEntryAction.java 2012-07-09 12:25:00 +0000
@@ -47,6 +47,8 @@
import org.hisp.dhis.program.ProgramStageInstanceService;
import org.hisp.dhis.program.comparator.ProgramStageDataElementSortOrderComparator;
+import sun.security.util.DisabledAlgorithmConstraints;
+
import com.opensymphony.xwork2.Action;
/**
@@ -202,8 +204,9 @@
if ( dataEntryForm != null )
{
+ Boolean disabled = ( program.getDisplayProvidedOtherFacility()==null)? true : !program.getDisplayProvidedOtherFacility();
customDataEntryFormCode = programDataEntryService.prepareDataEntryFormForEntry( dataEntryForm
- .getHtmlCode(), patientDataValues, program.getDisplayProvidedOtherFacility().toString(), i18n,
+ .getHtmlCode(), patientDataValues, disabled.toString(), i18n,
programStageInstance.getProgramStage(), programStageInstance, organisationUnit );
}
}