dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #12920
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4044: Fixed bug: Don't assign/unassign orgunit for dataset in DataAssignment Editor form.
------------------------------------------------------------
revno: 4044
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-06-30 16:29:28 +0700
message:
Fixed bug: Don't assign/unassign orgunit for dataset in DataAssignment Editor form.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/editor/DefinedAssociationEditorAction.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-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/editor/DefinedAssociationEditorAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/editor/DefinedAssociationEditorAction.java 2011-04-22 17:02:27 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/editor/DefinedAssociationEditorAction.java 2011-06-30 09:29:28 +0000
@@ -27,6 +27,9 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+import java.util.HashSet;
+import java.util.Set;
+
import org.hisp.dhis.dataset.DataSet;
import org.hisp.dhis.dataset.DataSetService;
import org.hisp.dhis.i18n.I18n;
@@ -139,13 +142,13 @@
if ( assigned )
{
dataSet.getSources().add( source );
-
+ source.getDataSets().add( dataSet );
title = i18n.getString( "assigned" ) + SEPERATE + title;
}
else
{
dataSet.getSources().remove( source );
-
+ source.getDataSets().remove( dataSet );
title = i18n.getString( "unassigned" ) + SEPERATE + title;
}