← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3665: removed unnecessary chaining in addDataSetForm

 

------------------------------------------------------------
revno: 3665
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-05-19 14:22:55 +0200
message:
  removed unnecessary chaining in addDataSetForm
modified:
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/resources/struts.xml


--
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-maintenance/dhis-web-maintenance-dataset/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/resources/struts.xml	2011-05-10 08:42:26 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/resources/struts.xml	2011-05-19 12:22:55 +0000
@@ -129,7 +129,7 @@
     
     <!-- Show add DataSet form chain -->
     
-    <action name="addDataSetForm"
+    <action name="addDataSetForm2"
       class="org.hisp.dhis.dataset.action.DataElementListFilteredByGroup">
       <result name="success" type="chain">indicatorListFilteredByGroupChain</result>
       <param name="requiredAuthorities">F_DATASET_ADD</param>
@@ -160,6 +160,13 @@
       <param name="javascripts">javascript/shortName.js,javascript/dataSet.js</param>
       <param name="requiredAuthorities">F_DATASET_ADD</param>
     </action>
+
+    <action name="addDataSetForm" class="org.hisp.dhis.dataset.action.PeriodTypeListAction">
+      <result name="success" type="velocity">/main.vm</result>
+      <param name="page">/dhis-web-maintenance-dataset/addDataSet.vm</param>
+      <param name="javascripts">javascript/shortName.js,javascript/dataSet.js</param>
+      <param name="requiredAuthorities">F_DATASET_ADD</param>
+    </action>
     
     <!-- Show edit DataSet form chain -->