=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js 2014-01-30 09:08:55 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js 2014-02-11 12:35:00 +0000 @@ -5053,7 +5053,7 @@ items: [ { xtype: 'checkbox', - id: 'userOrgunit', + id: 'userOrgunitChildren', columnWidth: 0.5, boxLabel: TR.i18n.user_orgunit, labelWidth: TR.conf.layout.form_label_width, @@ -5069,19 +5069,19 @@ }, { xtype: 'checkbox', - id: 'userOrgunitChildren', + id: 'userOrgunit', columnWidth: 0.5, boxLabel: TR.i18n.user_orgunit_children, labelWidth: TR.conf.layout.form_label_width, handler: function(chb, checked) { TR.cmp.params.organisationunit.treepanel.xable(checked, TR.cmp.aggregateFavorite.userorganisationunit.getValue()); - }, + TR.state.orgunitIds = []; + }, listeners: { added: function() { TR.cmp.aggregateFavorite.userorganisationunitchildren = this; }, handler: function(chb, checked) { - TR.cmp.params.organisationunit.toolbar.xable(checked, TR.cmp.aggregateFavorite.userorganisationunitchildren.getValue()); TR.cmp.params.organisationunit.treepanel.xable(checked, TR.cmp.aggregateFavorite.userorganisationunitchildren.getValue()); TR.state.orgunitIds = []; },